FBX C++ API Reference
fbxstring.h File Reference

Classes

class  FbxString
 Utility class to manipulate strings. More...
 
struct  FbxStringCompare
 Functor to compare FbxString. More...
 
struct  FbxStringCompareNoCase
 Functor to compare FbxString without case sensitivity. More...
 
struct  FbxCharPtrCompare
 Functor to compare "C" strings. More...
 
struct  FbxCharPtrCompareNoCase
 Functor to compare "C" strings without case sensitivity. More...
 

Functions

void FbxUTF8ToWC (const char *pInUTF8, wchar_t *&pOutWideChar, size_t *pOutWideCharSize=((void *) 0))
 Convert string from UTF8 to wide-char. More...
 
void FbxWCToUTF8 (const wchar_t *pInWideChar, char *&pOutUTF8, size_t *pOutUTF8Size=((void *) 0))
 Convert string from wide-char to UTF8. More...
 
 FBXSDK_INCOMPATIBLE_WITH_ARRAY (FbxString)
 
FbxString operator+ (const FbxString &pString1, const FbxString &pString2)
 FbxString concatenation. More...
 
FbxString operator+ (const FbxString &pString, char pChar)
 Character concatenation. More...
 
FbxString operator+ (const FbxString &pString1, const char *pString2)
 String concatenation. More...
 
FbxString operator+ (const FbxString &pString, int pValue)
 Integer concatenation. More...
 
FbxString operator+ (const FbxString &pString, float pValue)
 Float concatenation. More...
 
FbxString operator+ (const FbxString &pString, double pValue)
 Double concatenation. More...
 
void FbxRemoveChar (FbxString &pString, char pToRemove)
 Remove the given char in the given string. More...
 

Function Documentation

◆ FbxUTF8ToWC()

void FbxUTF8ToWC ( const char *  pInUTF8,
wchar_t *&  pOutWideChar,
size_t *  pOutWideCharSize = ((void *) 0) 
)

Convert string from UTF8 to wide-char.

Parameters
pInUTF8Input string
pOutWideCharoutput string
pOutWideCharSizesize of the allocated output string buffer
Remarks
Output buffer should be release by caller

◆ FbxWCToUTF8()

void FbxWCToUTF8 ( const wchar_t *  pInWideChar,
char *&  pOutUTF8,
size_t *  pOutUTF8Size = ((void *) 0) 
)

Convert string from wide-char to UTF8.

Parameters
pInWideCharinput string
pOutUTF8output string
pOutUTF8Sizesize of the allocated output string buffer
Remarks
Output buffer should be release by caller

◆ FBXSDK_INCOMPATIBLE_WITH_ARRAY()

FBXSDK_INCOMPATIBLE_WITH_ARRAY ( FbxString  )

◆ operator+() [1/6]

FbxString operator+ ( const FbxString pString1,
const FbxString pString2 
)

FbxString concatenation.

Parameters
pString1FbxString 1 to be concatenated to FbxString 2.
pString2FbxString 2 to be concatenated to FbxString 1

◆ operator+() [2/6]

FbxString operator+ ( const FbxString pString,
char  pChar 
)

Character concatenation.

Parameters
pStringFbxString to be concatenated to Character.
pCharCharacter to be concatenated to FbxString

◆ operator+() [3/6]

FbxString operator+ ( const FbxString pString1,
const char *  pString2 
)

String concatenation.

Parameters
pString1FbxString to be concatenated to String.
pString2String to be concatenated to FbxString

◆ operator+() [4/6]

FbxString operator+ ( const FbxString pString,
int  pValue 
)

Integer concatenation.

Parameters
pStringFbxString to be concatenated to Integer.
pValueInteger to be concatenated to FbxString

◆ operator+() [5/6]

FbxString operator+ ( const FbxString pString,
float  pValue 
)

Float concatenation.

Parameters
pStringFbxString to be concatenated to Float.
pValueFloat to be concatenated to FbxString

◆ operator+() [6/6]

FbxString operator+ ( const FbxString pString,
double  pValue 
)

Double concatenation.

Parameters
pStringFbxString to be concatenated to Double.
pValueDouble to be concatenated to FbxString

◆ FbxRemoveChar()

void FbxRemoveChar ( FbxString pString,
char  pToRemove 
)
inline

Remove the given char in the given string.

Parameters
pStringThe given string.
pToRemoveThe given char that ought to be removed.
Remarks
Strings used in this function are case-sensitive.

Definition at line 493 of file fbxstring.h.

494 {
495  int lPos = pString.ReverseFind(pToRemove);
496  while( lPos >= 0 )
497  {
498  pString = pString.Left(lPos) + pString.Mid(lPos + 1);
499  lPos = pString.ReverseFind(pToRemove);
500  }
501 }
FbxString Mid(size_t pFirst, size_t pCount) const
Extract middle string for a given length.
int ReverseFind(char pChar) const
Look for the last occurrence of character in string, like "C" strrchr().
FbxString Left(size_t pCount) const
Extract left string.

Go to the source code of this file.