17 TINT iResult = vsprintf( a_pcString, a_pcFormat, args );
18 TASSERT( iResult != -1,
"PS2/GC/X360 do not correctly support _vsnprintf, this code will cause memory to be clobbered on those platforms! Increase the size of the destination string to avoid this problem" );
24 TINT iResult = _vsnprintf( a_pcString, size, a_pcFormat, args );
25 TASSERT( iResult != -1,
"PS2/GC/X360 do not correctly support _vsnprintf, this code will cause memory to be clobbered on those platforms! Increase the size of the destination string to avoid this problem" );
26 a_pcString[ size - 1 ] =
'\0';
34 va_start( args, a_pcFormat );
35 TINT iResult =
FormatV( a_pcString, a_pcFormat, args );
45 va_start( args, a_pcFormat );
46 TINT iResult =
FormatV( a_pcString, size, a_pcFormat, args );
55 return strncmp( str1, str2, size );
57 return strcmp( str1, str2 );
63 return _strnicmp( str1, str2, size );
65 return _stricmp( str1, str2 );
71 return strncpy( dst, src, size );
73 return strcpy( dst, src );
79 return strncat( dst, src, size );
81 return strcat( dst, src );
88 strncpy( dst, src, size );
97 if ( *str ==
'\0' )
return TNULL;
98 if ( *str == character )
return str;
109 if ( *str ==
'\0' )
return TNULL;
110 if ( *str == character )
return str;
119 return strstr( str, substr );
124 return strstr( str, substr );
129 if ( str !=
TNULL )
return strlen( str );
169 _itoa( value, dst, radix );
174 _itoa( value, dst, radix );
184 return TFLOAT( atof( src ) );
189 TCHAR* pszCursor = str;
197 const TCHAR* pszCursor = str;
209 pcBuffer[ uiSize ] =
'\0';
#define TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_END
TFORCEINLINE const T & Min(const T &a, const T &b)
static CharType ToLowerCase(TINT a_cChar)
static CharType ToUpperCase(TINT a_cChar)
static TBOOL IsUpperCase(TINT a_cChar)
static TBOOL IsSpace(TINT a_cChar)
static TBOOL IsLowerCase(TINT a_cChar)
static TCHAR * FindChar(TCHAR *str, TCHAR character)
static TCHAR * CreateCopy(const TCHAR *a_pcString, TSIZE a_uiSize=-1)
static TSIZE Length(const TCHAR *str)
static TCHAR * SkipSpaces(TCHAR *str)
static void ToUpperCase(TCHAR *str)
static TCHAR ms_aScratchMem[SCRATCH_MEM_SIZE]
static TBOOL IsLowerCase(const TCHAR *str)
static TINT FormatV(TCHAR *a_pcString, TINT size, const TCHAR *a_pcFormat, va_list args)
static TINT Format(TCHAR *a_pcString, TINT size, const TCHAR *a_pcFormat,...)
static void IntToString(TINT value, TCHAR *dst, TINT unused, TINT radix)
static TFLOAT StringToFloat(const TCHAR *src)
static void ToLowerCase(TCHAR *str)
static TBOOL IsUpperCase(const TCHAR *str)
static TCHAR * Concat(TCHAR *dst, const TCHAR *src, TSIZE size=-1)
static TCHAR * CopySafe(TCHAR *dst, const TCHAR *src, TSIZE size)
static TINT Compare(const TCHAR *str1, const TCHAR *str2, TSIZE size=-1)
static TINT CompareNoCase(const TCHAR *str1, const TCHAR *str2, TSIZE size=-1)
static TCHAR * Copy(TCHAR *dst, const TCHAR *src, TSIZE size=-1)
static constexpr TSIZE SCRATCH_MEM_SIZE
static TCHAR * FindString(TCHAR *str, const TCHAR *substr)
static TINT StringToInt(const TCHAR *src)
static void * MemCopy(void *dst, const void *src, TSIZE size)