kstring.h File Reference


Detailed Description

Definition in file kstring.h.

#include <string.h>
#include <fbxfilesdk/components/kbaselib/kbaselib_h.h>
#include <fbxfilesdk/components/kbaselib/klib/kscopedptr.h>
#include <fbxfilesdk/fbxfilesdk_nsbegin.h>
#include <fbxfilesdk/fbxfilesdk_nsend.h>

Include dependency graph for kstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class   KString
  Utility class to manipulate strings. More...
class   KStringCompare
  Functor class suitable for use in KMap. More...

Functions

KFBX_DLL KString  operator+ (const KString &pKStr1, const KString &pKStr2)
  KString concatenation.
KFBX_DLL KString  operator+ (const KString &pKStr, char pChar)
  Character concatenation.
KFBX_DLL KString  operator+ (const KString &pKStr, const char *pStr)
  String concatenation.
KFBX_DLL KString  operator+ (const KString &pKStr, int pValue)
  Int concatenation.
KFBX_DLL KString  operator+ (const KString &pKStr, float pValue)
  Float concatenation.
void  StripQuotationMarks (KString &str)
  Strip the first and last character of the given string assuming they are quotation marks.
void  RemoveChar (KString &pString, char lToRemove)
  Remove the given char in the given string.

Function Documentation

KFBX_DLL KString operator+ ( const KString pKStr,
float  pValue  
)

Float concatenation.

Parameters:
pKStr  The KString be be concatenated.
pValue  The float value be be concatenated.

KFBX_DLL KString operator+ ( const KString pKStr,
int  pValue  
)

Int concatenation.

Parameters:
pKStr  The KString be be concatenated.
pValue  The int value be be concatenated.

KFBX_DLL KString operator+ ( const KString pKStr,
const char *  pStr  
)

String concatenation.

Parameters:
pKStr  The KString be be concatenated.
pStr  The string to be concatenated.

KFBX_DLL KString operator+ ( const KString pKStr,
char  pChar  
)

Character concatenation.

Parameters:
pKStr  The KString be be concatenated.
pChar  The character to be concatenated.

KFBX_DLL KString operator+ ( const KString pKStr1,
const KString pKStr2  
)

KString concatenation.

Parameters:
pKStr1  The first KString to be concatenated.
pKStr2  The second KString to be concatenated.

void RemoveChar ( KString pString,
char  lToRemove  
) [inline]

Remove the given char in the given string.

( It is case sensitive

Parameters:
pString  The given string.
lToRemove  The given char ought to be removed.( It is case sensitive.)

Definition at line 642 of file kstring.h.

References KString::Left(), KString::Mid(), and KString::ReverseFind().

void StripQuotationMarks ( KString str  )  [inline]

Strip the first and last character of the given string assuming they are quotation marks.

Parameters:
str  The given string.

Definition at line 633 of file kstring.h.

References KString::GetLen(), and KString::Mid().