2 * NOTICE and LICENSE for Tecplot Input/Output Library (TecIO) - OpenFOAM
4 * Copyright (C) 1988-2009 Tecplot, Inc. All rights reserved worldwide.
6 * Tecplot hereby grants OpenCFD limited authority to distribute without
7 * alteration the source code to the Tecplot Input/Output library, known
8 * as TecIO, as part of its distribution of OpenFOAM and the
9 * OpenFOAM_to_Tecplot converter. Users of this converter are also hereby
10 * granted access to the TecIO source code, and may redistribute it for the
11 * purpose of maintaining the converter. However, no authority is granted
12 * to alter the TecIO source code in any form or manner.
14 * This limited grant of distribution does not supersede Tecplot, Inc.'s
15 * copyright in TecIO. Contact Tecplot, Inc. for further information.
18 * 3535 Factoria Blvd, Ste. 550
19 * Bellevue, WA 98006, USA
20 * Phone: +1 425 653 1200
21 * http://www.tecplot.com/
25 ******************************************************************
26 ******************************************************************
28 ****** (C) 1988-2008 Tecplot, Inc. *******
30 ******************************************************************
31 ******************************************************************
35 #if !defined Q_UNICODE_H_
41 #if defined Q_UNICODEMODULE
53 Boolean_t
IsValidUtf8LeadByte(Byte_t ch
);
54 Boolean_t
IsValidUtf8ContinuingByte(Byte_t ch
);
55 Boolean_t
IsValidUtf8Byte(Byte_t ch
);
57 Boolean_t
IsValidUtf8String(const char *str
);
58 Boolean_t
ShouldConvertWideStringToUtf8String(const wchar_t *str
);
59 void InitTranslatedStrings();
60 void CleanUpTranslatedStrings();
62 Boolean_t
IsNullOrZeroLengthString(const char *S
);
63 Boolean_t
IsNullOrZeroLengthString(tecplot::strutil::TranslatedString TS
);
65 Boolean_t
IsEmptyString(const char *S
);
66 Boolean_t
IsEmptyString(tecplot::strutil::TranslatedString S
);
67 Boolean_t
IsEmptyString(const wchar_t* S
);
71 std::string
LookUpTranslation(std::string
& strEnglish
);
72 void MsWinInitTranslatedStrings();
74 std::string
WStringToString(std::wstring str
);
75 std::wstring
StringToWString(std::string str
);
77 std::wstring
MultiByteToWideChar(const char *Utf8Str
,
78 unsigned int CodePage
);
80 std::string
WideCharToMultiByte(const wchar_t *WideStr
,
81 unsigned int CodePage
);
84 std::string
WideCharToUtf8(const wchar_t* str
);
85 std::wstring
Utf8ToWideChar(const char *str
);
86 char *getenv(const char *str
);