orx  1.11
Portable Game Engine
OrxString

Macros

#define orxSTRING_KC_VECTOR_END   ')'
 
#define orxSTRING_KC_VECTOR_END_ALT   '}'
 
#define orxSTRING_KC_VECTOR_SEPARATOR   ','
 
#define orxSTRING_KC_VECTOR_START   '('
 
#define orxSTRING_KC_VECTOR_START_ALT   '{'
 
#define orxSTRING_KU32_CRC_POLYNOMIAL   0xEDB88320U
 
#define STRTO_CAST   (int)
 

Functions

static orxINLINE orxS32 orxString_Compare (const orxSTRING _zString1, const orxSTRING _zString2)
 
static orxINLINE orxSTRINGID orxString_ContinueCRC (const orxSTRING _zString, orxSTRINGID _stCRC)
 
static orxINLINE orxSTATUS orxString_Delete (orxSTRING _zString)
 
static orxINLINE orxSTRING orxString_Duplicate (const orxSTRING _zSrcString)
 
orxDLLAPI void orxFASTCALL orxString_Exit ()
 
static orxINLINE orxU32 orxString_ExtractBase (const orxSTRING _zString, const orxSTRING *_pzRemaining)
 
static orxINLINE orxU32 orxString_GetCharacterCount (const orxSTRING _zString)
 
static orxINLINE const orxSTRING orxString_GetExtension (const orxSTRING _zFileName)
 
static orxU32 orxFASTCALL orxString_GetFirstCharacterCodePoint (const orxSTRING _zString, const orxSTRING *_pzRemaining)
 
orxDLLAPI const orxSTRING orxFASTCALL orxString_GetFromID (orxSTRINGID _u32ID)
 
orxDLLAPI orxSTRINGID orxFASTCALL orxString_GetID (const orxSTRING _zString)
 
static orxINLINE orxU32 orxString_GetLength (const orxSTRING _zString)
 
static orxINLINE orxU32 orxString_GetUTF8CharacterLength (orxU32 _u32CharacterCodePoint)
 
static orxINLINE orxS32 orxString_ICompare (const orxSTRING _zString1, const orxSTRING _zString2)
 
orxDLLAPI orxSTATUS orxFASTCALL orxString_Init ()
 
static orxINLINE orxBOOL orxString_IsCharacterAlphaNumeric (orxU32 _u32CharacterCodePoint)
 
static orxINLINE orxBOOL orxString_IsCharacterASCII (orxU32 _u32CharacterCodePoint)
 
static orxINLINE orxSTRING orxString_LowerCase (orxSTRING _zString)
 
static orxINLINE orxS32 orxString_NCompare (const orxSTRING _zString1, const orxSTRING _zString2, orxU32 _u32CharNumber)
 
static orxINLINE orxSTRINGID orxString_NContinueCRC (const orxSTRING _zString, orxSTRINGID _stCRC, orxU32 _u32CharNumber)
 
static orxINLINE orxSTRING orxString_NCopy (orxSTRING _zDstString, const orxSTRING _zSrcString, orxU32 _u32CharNumber)
 
static orxINLINE orxS32 orxString_NICompare (const orxSTRING _zString1, const orxSTRING _zString2, orxU32 _u32CharNumber)
 
static orxINLINE orxS32 orxCDECL orxString_NPrint (orxSTRING _zDstString, orxU32 _u32CharNumber, const orxSTRING _zSrcString,...)
 
static orxINLINE orxSTRINGID orxString_NToCRC (const orxSTRING _zString, orxU32 _u32CharNumber)
 
static orxINLINE orxS32 orxCDECL orxString_Print (orxSTRING _zDstString, const orxSTRING _zSrcString,...)
 
static orxU32 orxFASTCALL orxString_PrintUTF8Character (orxSTRING _zDstString, orxU32 _u32Size, orxU32 _u32CharacterCodePoint)
 
static orxINLINE orxS32 orxCDECL orxString_Scan (const orxSTRING _zString, const orxSTRING _zFormat,...)
 
static orxINLINE const orxSTRING orxString_SearchChar (const orxSTRING _zString, orxCHAR _cChar)
 
static orxINLINE orxS32 orxString_SearchCharIndex (const orxSTRING _zString, orxCHAR _cChar, orxS32 _s32Position)
 
static orxINLINE const orxSTRING orxString_SearchString (const orxSTRING _zString1, const orxSTRING _zString2)
 
orxDLLAPI void orxFASTCALL orxString_Setup ()
 
static orxINLINE const orxSTRING orxString_SkipPath (const orxSTRING _zString)
 
static orxINLINE const orxSTRING orxString_SkipWhiteSpaces (const orxSTRING _zString)
 
orxDLLAPI const orxSTRING orxFASTCALL orxString_Store (const orxSTRING _zString)
 
static orxINLINE orxSTATUS orxString_ToBool (const orxSTRING _zString, orxBOOL *_pbOutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTRINGID orxString_ToCRC (const orxSTRING _zString)
 
static orxINLINE orxSTATUS orxString_ToFloat (const orxSTRING _zString, orxFLOAT *_pfOutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToS32 (const orxSTRING _zString, orxS32 *_ps32OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToS32Base (const orxSTRING _zString, orxU32 _u32Base, orxS32 *_ps32OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToS64 (const orxSTRING _zString, orxS64 *_ps64OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToS64Base (const orxSTRING _zString, orxU32 _u32Base, orxS64 *_ps64OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToU32 (const orxSTRING _zString, orxU32 *_pu32OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToU32Base (const orxSTRING _zString, orxU32 _u32Base, orxU32 *_pu32OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToU64 (const orxSTRING _zString, orxU64 *_pu64OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToU64Base (const orxSTRING _zString, orxU32 _u32Base, orxU64 *_pu64OutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTATUS orxString_ToVector (const orxSTRING _zString, orxVECTOR *_pvOutValue, const orxSTRING *_pzRemaining)
 
static orxINLINE orxSTRING orxString_UpperCase (orxSTRING _zString)
 

Variables

orxDLLAPI orxU32 saau32CRCTable [8][256]
 

Detailed Description

String module Module that handles strings

Macro Definition Documentation

#define orxSTRING_KC_VECTOR_END   ')'

Definition at line 78 of file orxString.h.

#define orxSTRING_KC_VECTOR_END_ALT   '}'

Definition at line 79 of file orxString.h.

#define orxSTRING_KC_VECTOR_SEPARATOR   ','

Definition at line 77 of file orxString.h.

#define orxSTRING_KC_VECTOR_START   '('

Definition at line 75 of file orxString.h.

#define orxSTRING_KC_VECTOR_START_ALT   '{'

Definition at line 76 of file orxString.h.

#define orxSTRING_KU32_CRC_POLYNOMIAL   0xEDB88320U

DefinesUsing 0x04C11DB7's reverse polynomial for CRC32B

Definition at line 84 of file orxString.h.

#define STRTO_CAST   (int)

Definition at line 61 of file orxString.h.

Function Documentation

static orxINLINE orxS32 orxString_Compare ( const orxSTRING  _zString1,
const orxSTRING  _zString2 
)
static

Compare two strings, case sensitive. If the first one is smaller than the second it returns -1, 1 if the second one is bigger than the first, and 0 if they are equals

Parameters
[in]_zString1First String to compare
[in]_zString2Second string to compare
Returns
-1, 0 or 1 as indicated in the description.

Definition at line 604 of file orxString.h.

static orxINLINE orxSTRINGID orxString_ContinueCRC ( const orxSTRING  _zString,
orxSTRINGID  _stCRC 
)
static

Continues a CRC with a string one

Parameters
[in]_zStringString used to continue the given CRC
[in]_stCRCBase CRC
Returns
The resulting CRC (orxSTRINGID)

Definition at line 1414 of file orxString.h.

static orxINLINE orxSTATUS orxString_Delete ( orxSTRING  _zString)
static

Deletes a string

Parameters
[in]_zStringString to delete

Definition at line 585 of file orxString.h.

static orxINLINE orxSTRING orxString_Duplicate ( const orxSTRING  _zSrcString)
static

Duplicate a string.

Parameters
[in]_zSrcStringString to duplicate.
Returns
Duplicated string.

Definition at line 557 of file orxString.h.

orxDLLAPI void orxFASTCALL orxString_Exit ( )

Exits from the structure module

static orxINLINE orxU32 orxString_ExtractBase ( const orxSTRING  _zString,
const orxSTRING *  _pzRemaining 
)
static

Extracts the base (2, 8, 10 or 16) from a literal number

Parameters
[in]_zStringString from which to extract the base
[out]_pzRemainingIf non null, will contain the remaining literal number, right after the base prefix (0x, 0b or 0)
Returns
Base or the numerical value, defaults to 10 (decimal) when no prefix is found or the literal value couldn't be identified

Definition at line 689 of file orxString.h.

static orxINLINE orxU32 orxString_GetCharacterCount ( const orxSTRING  _zString)
static

Returns the number of valid unicode characters (UTF-8) in the string (for ASCII string, it will be the same result as orxString_GetLength())

Parameters
[in]_zStringConcerned string
Returns
Number of valid unicode characters contained in the string, orxU32_UNDEFINED for an invalid UTF-8 string

Definition at line 509 of file orxString.h.

static orxINLINE const orxSTRING orxString_GetExtension ( const orxSTRING  _zFileName)
static

Gets the extension from a file name

Parameters
[in]_zFileNameConcerned file name
Returns
Extension if exists, orxSTRING_EMPTY otherwise

Definition at line 1633 of file orxString.h.

static orxU32 orxFASTCALL orxString_GetFirstCharacterCodePoint ( const orxSTRING  _zString,
const orxSTRING *  _pzRemaining 
)
static

Returns the code of the first character of the UTF-8 string

Parameters
[in]_zStringConcerned string
[out]_pzRemainingIf non null, will contain the remaining string after the first UTF-8 character
Returns
Code of the first UTF-8 character of the string, orxU32_UNDEFINED if it's an invalid character

Definition at line 342 of file orxString.h.

orxDLLAPI const orxSTRING orxFASTCALL orxString_GetFromID ( orxSTRINGID  _u32ID)

Gets a string from an ID (it should have already been stored internally with a call to orxString_GetID)

Parameters
[in]_u32IDConcerned string ID
Returns
orxSTRING if ID's found, orxSTRING_EMPTY otherwise
orxDLLAPI orxSTRINGID orxFASTCALL orxString_GetID ( const orxSTRING  _zString)

Gets a string's ID (and stores the string internally to prevent duplication)

Parameters
[in]_zStringConcerned string
Returns
String's ID
static orxINLINE orxU32 orxString_GetLength ( const orxSTRING  _zString)
static

Returns the number of orxCHAR in the string (for non-ASCII UTF-8 string, it won't be the actual number of unicode characters)

Parameters
[in]_zStringString used for length computation
Returns
Length of the string (doesn't count final orxCHAR_NULL)

Definition at line 173 of file orxString.h.

static orxINLINE orxU32 orxString_GetUTF8CharacterLength ( orxU32  _u32CharacterCodePoint)
static

Gets the UTF-8 encoding length of given character

Parameters
[in]_u32CharacterCodePointConcerned character code
Returns
Encoding length in UTF-8 for given character if valid, orxU32_UNDEFINED otherwise

Definition at line 208 of file orxString.h.

static orxINLINE orxS32 orxString_ICompare ( const orxSTRING  _zString1,
const orxSTRING  _zString2 
)
static

Compare two strings, case insensitive. If the first one is smaller than the second, it returns -1, If the second one is bigger than the first, and 0 if they are equals

Parameters
[in]_zString1First String to compare
[in]_zString2Second string to compare
Returns
-1, 0 or 1 as indicated in the description.

Definition at line 638 of file orxString.h.

orxDLLAPI orxSTATUS orxFASTCALL orxString_Init ( )

Initializess the structure module

Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE
static orxINLINE orxBOOL orxString_IsCharacterAlphaNumeric ( orxU32  _u32CharacterCodePoint)
static

Tells if a character is alpha-numeric from its ID

Parameters
[in]_u32CharacterCodePointConcerned character code
Returns
orxTRUE is it's a non-extended ASCII alpha-numerical character, orxFALSE otherwise

Definition at line 196 of file orxString.h.

static orxINLINE orxBOOL orxString_IsCharacterASCII ( orxU32  _u32CharacterCodePoint)
static

Tells if a character is ASCII from its ID

Parameters
[in]_u32CharacterCodePointConcerned character code
Returns
orxTRUE is it's a non-extended ASCII character, orxFALSE otherwise

Definition at line 186 of file orxString.h.

static orxINLINE orxSTRING orxString_LowerCase ( orxSTRING  _zString)
static

Lowercase a string

Parameters
[in]_zStringString To convert
Returns
The converted string.

Definition at line 1277 of file orxString.h.

static orxINLINE orxS32 orxString_NCompare ( const orxSTRING  _zString1,
const orxSTRING  _zString2,
orxU32  _u32CharNumber 
)
static

Compare N first character from two strings, case sensitive. If the first one is smaller than the second it returns -1, 1 if the second one is bigger than the first and 0 if they are equals.

Parameters
[in]_zString1First String to compare
[in]_zString2Second string to compare
[in]_u32CharNumberNumber of character to compare
Returns
-1, 0 or 1 as indicated in the description.

Definition at line 622 of file orxString.h.

static orxINLINE orxSTRINGID orxString_NContinueCRC ( const orxSTRING  _zString,
orxSTRINGID  _stCRC,
orxU32  _u32CharNumber 
)
static

Continues a CRC with a string one

Parameters
[in]_zStringString used to continue the given CRC
[in]_stCRCBase CRC
[in]_u32CharNumberNumber of character to process, should be <= orxString_GetLength(_zString)
Returns
The resulting CRC (orxSTRINGID)

Definition at line 1329 of file orxString.h.

static orxINLINE orxSTRING orxString_NCopy ( orxSTRING  _zDstString,
const orxSTRING  _zSrcString,
orxU32  _u32CharNumber 
)
static

Copies up to N characters from a string

Parameters
[in]_zDstStringDestination string
[in]_zSrcStringSource string
[in]_u32CharNumberNumber of characters to copy
Returns
Copied string

Definition at line 543 of file orxString.h.

static orxINLINE orxS32 orxString_NICompare ( const orxSTRING  _zString1,
const orxSTRING  _zString2,
orxU32  _u32CharNumber 
)
static

Compare N first character from two strings, case insensitive. If the first one is smaller than the second, it returns -1, If the second one is bigger than the first, and 0 if they are equals.

Parameters
[in]_zString1First String to compare
[in]_zString2Second string to compare
[in]_u32CharNumberNumber of character to compare
Returns
-1, 0 or 1 as indicated in the description.

Definition at line 665 of file orxString.h.

static orxINLINE orxS32 orxCDECL orxString_NPrint ( orxSTRING  _zDstString,
orxU32  _u32CharNumber,
const orxSTRING  _zSrcString,
  ... 
)
static

Prints a formated string to a memory buffer using a max size

Parameters
[out]_zDstStringDestination string
[in]_zSrcStringSource formated string
[in]_u32CharNumberMax number of character to print
Returns
The number of written characters

Definition at line 1546 of file orxString.h.

static orxINLINE orxSTRINGID orxString_NToCRC ( const orxSTRING  _zString,
orxU32  _u32CharNumber 
)
static

Converts a string to a CRC

Parameters
[in]_zStringString To convert
[in]_u32CharNumberNumber of character to process, should be <= orxString_GetLength(_zString)
Returns
The resulting CRC (orxSTRINGID)

Definition at line 1430 of file orxString.h.

static orxINLINE orxS32 orxCDECL orxString_Print ( orxSTRING  _zDstString,
const orxSTRING  _zSrcString,
  ... 
)
static

Prints a formated string to a memory buffer

Parameters
[out]_zDstStringDestination string
[in]_zSrcStringSource formated string
Returns
The number of written characters

Definition at line 1519 of file orxString.h.

static orxU32 orxFASTCALL orxString_PrintUTF8Character ( orxSTRING  _zDstString,
orxU32  _u32Size,
orxU32  _u32CharacterCodePoint 
)
static

Prints a unicode character encoded with UTF-8 to an orxSTRING

Parameters
[in]_zDstStringDestination string
[in]_u32SizeAvailable size on the string
[in]_u32CharacterCodePointUnicode code point of the character to print
Returns
Length of the encoded UTF-8 character (1, 2, 3 or 4) if valid, orxU32_UNDEFINED otherwise

Definition at line 249 of file orxString.h.

static orxINLINE orxS32 orxCDECL orxString_Scan ( const orxSTRING  _zString,
const orxSTRING  _zFormat,
  ... 
)
static

Scans a formated string from a memory buffer

Parameters
[in]_zStringString to scan
[in]_zFormatFormat string
Returns
The number of scanned items

Definition at line 1581 of file orxString.h.

static orxINLINE const orxSTRING orxString_SearchChar ( const orxSTRING  _zString,
orxCHAR  _cChar 
)
static

Returns the first occurrence of _cChar in _zString

Parameters
[in]_zStringString to analyze
[in]_cCharThe character to find
Returns
The pointer of the first occurrence of _cChar, or orxNULL if not found

Definition at line 1473 of file orxString.h.

static orxINLINE orxS32 orxString_SearchCharIndex ( const orxSTRING  _zString,
orxCHAR  _cChar,
orxS32  _s32Position 
)
static

Returns the first occurrence of _cChar in _zString

Parameters
[in]_zStringString to analyze
[in]_cCharThe character to find
[in]_s32PositionSearch begin position
Returns
The index of the next occurrence of requested character, starting at given position / -1 if not found

Definition at line 1488 of file orxString.h.

static orxINLINE const orxSTRING orxString_SearchString ( const orxSTRING  _zString1,
const orxSTRING  _zString2 
)
static

Returns the first occurrence of _zString2 in _zString1

Parameters
[in]_zString1String to analyze
[in]_zString2String that must be inside _zString1
Returns
The pointer of the first occurrence of _zString2, or orxNULL if not found

Definition at line 1458 of file orxString.h.

orxDLLAPI void orxFASTCALL orxString_Setup ( )

Structure module setup

static orxINLINE const orxSTRING orxString_SkipPath ( const orxSTRING  _zString)
static

Skips path

Parameters
[in]_zStringConcerned string
Returns
Sub string located after all non-terminal directory separators

Definition at line 130 of file orxString.h.

static orxINLINE const orxSTRING orxString_SkipWhiteSpaces ( const orxSTRING  _zString)
static

Skips all white spaces

Parameters
[in]_zStringConcerned string
Returns
Sub string located after all leading white spaces, including EOL characters

Definition at line 99 of file orxString.h.

orxDLLAPI const orxSTRING orxFASTCALL orxString_Store ( const orxSTRING  _zString)

Stores a string internally: equivalent to an optimized call to orxString_GetFromID(orxString_GetID(_zString))

Parameters
[in]_zStringConcerned string
Returns
Stored orxSTRING
static orxINLINE orxSTATUS orxString_ToBool ( const orxSTRING  _zString,
orxBOOL *  _pbOutValue,
const orxSTRING *  _pzRemaining 
)
static

Convert a string to a boolean

Parameters
[in]_zStringString To convert
[out]_pbOutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the boolean conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 1204 of file orxString.h.

static orxINLINE orxSTRINGID orxString_ToCRC ( const orxSTRING  _zString)
static

Converts a string to a CRC

Parameters
[in]_zStringString To convert
Returns
The resulting CRC (orxSTRINGID)

Definition at line 1444 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToFloat ( const orxSTRING  _zString,
orxFLOAT *  _pfOutValue,
const orxSTRING *  _pzRemaining 
)
static

Convert a string to a value

Parameters
[in]_zStringString To convert
[out]_pfOutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 1052 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToS32 ( const orxSTRING  _zString,
orxS32 *  _ps32OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to a signed int value, guessing the base

Parameters
[in]_zStringString To convert
[out]_ps32OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 822 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToS32Base ( const orxSTRING  _zString,
orxU32  _u32Base,
orxS32 *  _ps32OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to a signed int value using the given base

Parameters
[in]_zStringString To convert
[in]_u32BaseBase of the read value (generally 10, but can be 16 to read hexa)
[out]_ps32OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 781 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToS64 ( const orxSTRING  _zString,
orxS64 *  _ps64OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to a signed int value, guessing the base

Parameters
[in]_zStringString To convert
[out]_ps64OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 958 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToS64Base ( const orxSTRING  _zString,
orxU32  _u32Base,
orxS64 *  _ps64OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to a signed int value using the given base

Parameters
[in]_zStringString To convert
[in]_u32BaseBase of the read value (generally 10, but can be 16 to read hexa)
[out]_ps64OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 917 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToU32 ( const orxSTRING  _zString,
orxU32 *  _pu32OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to an unsigned int value, guessing the base

Parameters
[in]_zStringString To convert
[out]_pu32OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 890 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToU32Base ( const orxSTRING  _zString,
orxU32  _u32Base,
orxU32 *  _pu32OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to an unsigned int value using the given base

Parameters
[in]_zStringString To convert
[in]_u32BaseBase of the read value (generally 10, but can be 16 to read hexa)
[out]_pu32OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 849 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToU64 ( const orxSTRING  _zString,
orxU64 *  _pu64OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to an unsigned int value, guessing the base

Parameters
[in]_zStringString To convert
[out]_pu64OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 1026 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToU64Base ( const orxSTRING  _zString,
orxU32  _u32Base,
orxU64 *  _pu64OutValue,
const orxSTRING *  _pzRemaining 
)
static

Converts a String to an unsigned int value using the given base

Parameters
[in]_zStringString To convert
[in]_u32BaseBase of the read value (generally 10, but can be 16 to read hexa)
[out]_pu64OutValueConverted value
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 985 of file orxString.h.

static orxINLINE orxSTATUS orxString_ToVector ( const orxSTRING  _zString,
orxVECTOR _pvOutValue,
const orxSTRING *  _pzRemaining 
)
static

Convert a string to a vector

Parameters
[in]_zStringString To convert
[out]_pvOutValueConverted value. N.B.: if only two components (x, y) are defined, the z component will be set to zero
[out]_pzRemainingIf non null, will contain the remaining string after the number conversion
Returns
orxSTATUS_SUCCESS / orxSTATUS_FAILURE

Definition at line 1103 of file orxString.h.

static orxINLINE orxSTRING orxString_UpperCase ( orxSTRING  _zString)
static

Uppercase a string

Parameters
[in]_zStringString To convert
Returns
The converted string.

Definition at line 1302 of file orxString.h.

Variable Documentation

orxDLLAPI orxU32 saau32CRCTable[8][256]

CRC Tables (slice-by-8)


Generated for orx by doxygen 1.8.11