45static char *format_type =
"cCdiouxXeEfgGnpsS";
49 char *ptr = format_type;
53 if ( (
unsigned int)*ptr++ == (
unsigned int) ch )
94 len = wcslen ( new_ole );
96 ole =
new OLECHAR[len+1];
97 wcscpy ( ole, new_ole );
99 sprintf ( sb,
"%S", ole );
115 len = strlen ( new_sb );
118 ole =
new OLECHAR[len+1];
119 swprintf ( ole, L
"%S", new_sb );
120 sb =
new char[len+1];
121 strcpy ( sb, new_sb );
151 if ( !len || locked )
156 char *
string =
new char[len*2];
161 while ( (ch = *ptr++) )
178 if ( slash && ((esc = *ptr) ==
'n' || esc ==
't') )
221 while ( (ch = *ptr++) )
225 if ( last ==
' ' || skipall )
231 if ( ch ==
'\n' || ch ==
'\t' )
265 while ( (ch = *ptr++) )
269 if ( last ==
' ' || skipall )
282 if ( slash && (esc = *ptr) ==
'n' || esc ==
't' )
321 while ( (ch = *
string++) )
348template <
typename text>
int SameFormat ( text *string1, text *string2 )
351 while ( *string1 && *string2 )
362 if ( *string1 ==
'\\' )
381 if ( *string2 ==
'\\' )
391 if ( !*string1 && !*string2)
396 int found_type =
FALSE;
398 while ( *string1 && *string2 && !found_type )
402 if ( *string1 != *string2 )
void Set(OLECHAR *new_ole)
void FormatMetaString(void)
template int IsFormatTypeChar< OLECHAR >(OLECHAR string)
template void StripSpaces< char >(char *string)
void EncodeFormat(text *string)
template void StripSpaces< OLECHAR >(OLECHAR *string)
int SameFormat(text *string1, text *string2)
template void EncodeFormat< OLECHAR >(OLECHAR *string)
template int IsFormatTypeChar< char >(char string1)
template void EncodeFormat< char >(char *string)
template void StripSpacesFromMetaString< char >(char *string)
template int SameFormat< OLECHAR >(OLECHAR *string1, OLECHAR *string2)
template void StripSpacesFromMetaString< OLECHAR >(OLECHAR *string)
template void DecodeFormat< OLECHAR >(OLECHAR *string)
template int SameFormat< char >(char *string1, char *string2)
void StripSpacesFromMetaString(text *string)
void ConvertMetaChars(text *string)
template void ConvertMetaChars< char >(char *string)
template void ConvertMetaChars< OLECHAR >(OLECHAR *string)
template void DecodeFormat< char >(char *string1)
void DecodeFormat(text *string)
void StripSpaces(text *string)
int IsFormatTypeChar(text ch)