FbxRenamingStrategyUtils Class Reference
         
    
#include <fbxrenamingstrategyutilities.h>
This class contains a set of utilities, which are used by the FBX renaming strategy. 
Definition at line 31 of file fbxrenamingstrategyutilities.h.
 
  
  
      
        
          | static bool EncodeNonAlpha  | 
          ( | 
          FbxString &  | 
          pString,  | 
         
        
           | 
           | 
          bool  | 
          pFirstCharMustBeAlphaOnly = false,  | 
         
        
           | 
           | 
          FbxString  | 
          pPermittedChars = "",  | 
         
        
           | 
           | 
          bool  | 
          p8bitCharsOnly = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Check if the string has non alphanumeric characters and replace them with a special string containing a prefix and the character code. 
- Parameters
 - 
  
    | pString | String to be processed. The result of the conversion is also returned in this string.  | 
    | pFirstCharMustBeAlphaOnly | This flag tells whether the first char of the string must be alpha only. Its default value is false.  | 
    | pPermittedChars | List of non alphanumeric characters that do not require to be converted because already supported by the destination application. When encountered, these characters are simply skipped and left as is.  | 
    | p8bitCharsOnly | When true, this flag tells the routine that only 8 bit coded characters can be represented by the encoding format (see note below). If set to false, the range of supported character is increased and the memory usage may be less. But the routine will perform slower because of the internal conversions required.  | 
  
   
- Returns
 - Returns 
true if at least one character in pString has been encoded.  
- Note
 - The encoding string depends on the value of 
p8bitCharsOnly argument. When this parameter value is true, each non-alphanumeric character is replaced with FBXASC### (where ### is the decimal code of the character). Inversely, when the value is false, each non-alphanumeric characters is replaced with FBXCHR##### (where is the hexadecimal representation of the character code).
 
 
 
  
  
      
        
          | static bool DecodeNonAlpha  | 
          ( | 
          FbxString &  | 
          pString | ) | 
           | 
         
       
   | 
  
static   | 
  
 
Take a string that has been encoded by EncodeNonAlpha and re-extract the non-alphanumeric values. 
- Parameters
 - 
  
    | pString | String to be processed. The result of the conversion is also returned in this string.  | 
  
   
- Returns
 - Returns 
true if the pString argument has been decoded.  
 
 
  
  
      
        
          | static bool EncodeDuplicate  | 
          ( | 
          FbxString &  | 
          pString,  | 
         
        
           | 
           | 
          int  | 
          pInstanceNumber = 0  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
This method will add the ncl1 with the provided pInstanceNumber to the string. 
- Parameters
 - 
  
    | pString |  | 
    | pInstanceNumber | Its default value is 0.  | 
  
   
- Returns
 - Always returns true. 
 
 
 
  
  
      
        
          | static bool DecodeDuplicate  | 
          ( | 
          FbxString &  | 
          pString | ) | 
           | 
         
       
   | 
  
static   | 
  
 
This method will remove the _ncl1_xxx from the given string. 
- Parameters
 - 
  
  
 
- Returns
 - Returns true if the pString has been modified 
 
 
 
This method will compare pString and pString2, set pString to pString2 and append the ncl2 suffix to it. 
- Parameters
 - 
  
  
 
- Returns
 - Returns true if the pString has been modified 
 
 
 
  
  
      
        
          | static bool DecodeCaseInsensitive  | 
          ( | 
          FbxString &  | 
          pString | ) | 
           | 
         
       
   | 
  
static   | 
  
 
This method will decode a string that has a ncl2 to it. 
- Parameters
 - 
  
  
 
- Returns
 - Returns true if the pString has been modified 
 
 
 
The documentation for this class was generated from the following file: