HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_NameManager.h File Reference
#include "UT_API.h"
#include "UT_ArrayStringMap.h"
#include "UT_Defines.h"
#include "UT_Function.h"
#include "UT_String.h"
#include "UT_StringHolder.h"
#include "UT_WorkBuffer.h"
+ Include dependency graph for UT_NameManager.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  UT_NameManager< DATA_TYPE >
 

Functions

UT_API UT_StringHolder UTuniqueName (const UT_StringRef &name, UT_Function< bool(const UT_StringRef &)> is_unique)
 

Function Documentation

UT_API UT_StringHolder UTuniqueName ( const UT_StringRef name,
UT_Function< bool(const UT_StringRef &)>  is_unique 
)

Returns a unique name based on the requested one, by appending numerical suffix if there is a name collision. The is_unique parameter function takes a suggestd name as a parameter and returns true if it is unique; or false otherwise.