fbxsdk/utils/fbxrenamingstrategyutilities.h Source File
 
 
 
fbxsdk/utils/fbxrenamingstrategyutilities.h
Go to the documentation of this file.
00001 /****************************************************************************************
00002  
00003    Copyright (C) 2013 Autodesk, Inc.
00004    All rights reserved.
00005  
00006    Use of this software is subject to the terms of the Autodesk license agreement
00007    provided at the time of installation or download, or which otherwise accompanies
00008    this software in either electronic or hard copy form.
00009  
00010 ****************************************************************************************/
00011 
00013 #ifndef _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_
00014 #define _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_
00015 
00016 #include <fbxsdk/fbxsdk_def.h>
00017 
00018 #include <fbxsdk/core/base/fbxstring.h>
00019 
00020 #include <fbxsdk/fbxsdk_nsbegin.h>
00021 
00022 #define NAMECLASH1_KEY      "_ncl1_" // name (x)
00023 #define NAMECLASH2_KEY          "_ncl2_" // Upper/lower cases clash
00024 
00025 #define UPPERTOLOWER_KEY        "ul"
00026 #define LOWERTOUPPER_KEY        "lu"
00027 
00031 class FBXSDK_DLL FbxRenamingStrategyUtils
00032 {
00033 public:
00034 
00053     static bool EncodeNonAlpha(FbxString &pString, bool pFirstCharMustBeAlphaOnly=false, FbxString pPermittedChars="", bool p8bitCharsOnly = true);
00054 
00059     static bool DecodeNonAlpha(FbxString &pString);
00060 
00067     static bool EncodeDuplicate(FbxString &pString, int pInstanceNumber=0);
00068 
00073     static bool DecodeDuplicate(FbxString &pString);
00074 
00081     static bool EncodeCaseInsensitive(FbxString &pString, const FbxString pString2);
00082 
00087     static bool DecodeCaseInsensitive(FbxString &pString);
00088 
00089 };
00090 
00091 #include <fbxsdk/fbxsdk_nsend.h>
00092 
00093 #endif /* _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_ */