- Main Page
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# fbxrenamingstrategyutilities.h

Go to the documentation of this file.

    00001 /****************************************************************************************
    00002
    00003    Copyright (C) 2012 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 #include <fbxsdk/scene/fbxscene.h>
    00020
    00021 #include <fbxsdk/fbxsdk_nsbegin.h>
    00022
    00023 #define NAMECLASH1_KEY      "_ncl1_" // name (x)
    00024 #define NAMECLASH2_KEY      "_ncl2_" // Upper/lower cases clash
    00025
    00026 #define UPPERTOLOWER_KEY    "ul"
    00027 #define LOWERTOUPPER_KEY    "lu"
    00028
    00032 class FBXSDK_DLL FbxRenamingStrategyUtils
    00033 {
    00034 public:
    00035
    00054     static bool EncodeNonAlpha(FbxString &pString, bool pFirstCharMustBeAlphaOnly=false, FbxString pPermittedChars="", bool p8bitCharsOnly = true);
    00055
    00060     static bool DecodeNonAlpha(FbxString &pString);
    00061
    00068     static bool EncodeDuplicate(FbxString &pString, int pInstanceNumber=0);
    00069
    00074     static bool DecodeDuplicate(FbxString &pString);
    00075
    00082     static bool EncodeCaseInsensitive(FbxString &pString, const FbxString pString2);
    00083
    00088     static bool DecodeCaseInsensitive(FbxString &pString);
    00089
    00090 };
    00091
    00092 #include <fbxsdk/fbxsdk_nsend.h>
    00093
    00094 #endif /* _FBXSDK_UTILS_RENAMINGSTRATEGY_UTILITIES_H_ */