diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2014-10-15 15:50:00 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2014-10-15 15:50:00 +0200 |
commit | b37950fecfb3afb53942fba28e4e36d0b8753351 (patch) | |
tree | 52a51bd7b6a808ee43d4422d79d9d0aee5dde4fd /src/libutil/win32/tcharutils.h | |
parent | 1127e07a2a6d6b3c0cbd342396e6c8af7ee54040 (diff) | |
download | crawler-b37950fecfb3afb53942fba28e4e36d0b8753351.tar.gz crawler-b37950fecfb3afb53942fba28e4e36d0b8753351.tar.bz2 |
added file iteration also on Windows
Diffstat (limited to 'src/libutil/win32/tcharutils.h')
-rw-r--r-- | src/libutil/win32/tcharutils.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/libutil/win32/tcharutils.h b/src/libutil/win32/tcharutils.h new file mode 100644 index 0000000..40022fd --- /dev/null +++ b/src/libutil/win32/tcharutils.h @@ -0,0 +1,32 @@ +/* This file is part of Strigi Desktop Search + * + * Copyright (C) 2007 Jos van den Oever <jos@vandenoever.info> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this library; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + */ + +#ifndef _TCHAR_UTILS_H_ +#define _TCHAR_UTILS_H_ + +#include <wchar.h> +#include <string> + +std::string wchartoutf8(const wchar_t*); +std::wstring utf8toucs2(const char*); +std::string wchartoutf8(const std::wstring&); +std::wstring utf8toucs2(const std::string&); + +#endif |