FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fbxrenamingstrategyutilities.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2017 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_
14 #define _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
22 #define NAMECLASH1_KEY "_ncl1_" // name (x)
23 #define NAMECLASH2_KEY "_ncl2_" // Upper/lower cases clash
24 
25 #define UPPERTOLOWER_KEY "ul"
26 #define LOWERTOUPPER_KEY "lu"
27 
32 {
33 public:
34 
53  static bool EncodeNonAlpha(FbxString &pString, bool pFirstCharMustBeAlphaOnly=false, FbxString pPermittedChars="", bool p8bitCharsOnly = true);
54 
59  static bool DecodeNonAlpha(FbxString &pString);
60 
67  static bool EncodeDuplicate(FbxString &pString, int pInstanceNumber=0);
68 
73  static bool DecodeDuplicate(FbxString &pString);
74 
81  static bool EncodeCaseInsensitive(FbxString &pString, const FbxString pString2);
82 
87  static bool DecodeCaseInsensitive(FbxString &pString);
88 
93  static FbxString NoPrefixName(const char* pName);
94 
99  static FbxString NoPrefixName(FbxString& pName);
100 };
101 
102 #include <fbxsdk/fbxsdk_nsend.h>
103 
104 #endif /* _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_ */
FBX SDK environment definition.
Utility class to manipulate strings.
Definition: fbxstring.h:66
This class contains a set of utilities, which are used by the FBX renaming strategy.
#define FBXSDK_DLL
Definition: fbxarch.h:173