17 #ifdef DtUSE_UTILITIES_NAMESPACE
18 namespace DtUSE_UTILITIES_NAMESPACE
44 #define is_bigendian() ( (*(char*)&endianChecker) == 0 )
50 for(
int i = 0; i < ( theSize >> 1 ); ++i )
52 theEnd = ( theSize - 1 ) - i;
53 byteArray[ i ] ^= byteArray[ theEnd ];
54 byteArray[ theEnd ] ^= byteArray[ i ];
55 byteArray[ i ] ^= byteArray[ theEnd ];
62 unsigned short msbyte = rhs & 0x00ff;
63 unsigned short lsbyte = ( rhs & 0xff00 ) >> 8;
64 return ( msbyte << 8 ) | lsbyte;
72 return ( msword << 16 ) | lsword;
79 unsigned int mspart =
endianSwap32Bit( static_cast<unsigned int>(rhs & 0xffffffff) );
80 unsigned int lspart =
endianSwap32Bit(static_cast<unsigned int>(( rhs >> 32 ) & 0xffffffff) );
81 return (
DtU64 ( mspart ) << 32 ) | lspart;
112 bool usingDt =
false;
130 input = iter->second;
135 if(nonDt[0] ==
'D' && nonDt[1] ==
't')
150 std::string temp = input.
string();
158 input = temp.
c_str();
164 static const char *keywords[] = {
165 "abstract",
"as",
"base",
166 "break",
"case",
"catch",
167 "checked",
"class",
"const",
168 "continue",
"decimal",
"default",
"delegate",
169 "do",
"else",
"enum",
170 "event",
"explicit",
"extern",
"false",
171 "finally",
"fixed",
"for",
172 "foreach",
"goto",
"if",
"implicit",
173 "in",
"interface",
"internal",
174 "is",
"lock",
"namespace",
175 "new",
"null",
"object",
"operator",
176 "out",
"override",
"params",
"private",
177 "protected",
"public",
"readonly",
"ref",
179 "sizeof",
"stackalloc",
"static",
180 "struct",
"switch",
"this",
"throw",
181 "true",
"try",
"typeof",
182 "unchecked",
"unsafe",
183 "using",
"using static",
"virtual",
187 while (strlen(keywords[kw]) > 0)
189 if (strcmp(keywords[kw], input) == 0)
200 #ifdef DtUSE_UTILITIES_NAMESPACE