HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_VarEncode Class Reference

#include <UT_VarEncode.h>

Static Public Member Functions

static UT_StringHolder encodeVar (const UT_StringHolder &var)
 
static UT_StringHolder decodeVar (const UT_StringHolder &var)
 
static UT_StringHolder encodeAttrib (const UT_StringHolder &attr)
 
static UT_StringHolder decodeAttrib (const UT_StringHolder &attr)
 
static UT_StringHolder encodeParm (const UT_StringHolder &parm)
 
static UT_StringHolder decodeParm (const UT_StringHolder &parm)
 
static bool isEncoded (const UT_StringHolder &str)
 

Detailed Description

Definition at line 18 of file UT_VarEncode.h.

Member Function Documentation

static UT_StringHolder UT_VarEncode::decodeAttrib ( const UT_StringHolder attr)
static

Returns an encoded attribute name, if var contains any characters illegal in a geometry attribute name. Note, the encoding is prefixed. If var contains only valid C-variable characters, returns it unencoded.

static UT_StringHolder UT_VarEncode::decodeParm ( const UT_StringHolder parm)
static

Returns an encoded parameter name, if var contains any characters illegal in a node parameter name. Note, the encoding is prefixed. If var contains only valid C-variable characters, returns it unencoded.

static UT_StringHolder UT_VarEncode::decodeVar ( const UT_StringHolder var)
static

Returns an encoded variable name, if var contains any characters illegal in a C-style variable name. Note, the encoding is prefixed. If var contains only valid C-variable characters, returns it unencoded.

static UT_StringHolder UT_VarEncode::encodeAttrib ( const UT_StringHolder attr)
static

Returns an encoded attribute name, if var contains any characters illegal in a geometry attribute name. Note, the encoding is prefixed. If var contains only valid C-variable characters, returns it unencoded.

static UT_StringHolder UT_VarEncode::encodeParm ( const UT_StringHolder parm)
static

Returns an encoded parameter name, if var contains any characters illegal in a node parameter name. Note, the encoding is prefixed. If var contains only valid C-variable characters, returns it unencoded.

static UT_StringHolder UT_VarEncode::encodeVar ( const UT_StringHolder var)
static

Returns an encoded variable name, if var contains any characters illegal in a C-style variable name. Note, the encoding is prefixed. If var contains only valid C-variable characters, returns it unencoded.

static bool UT_VarEncode::isEncoded ( const UT_StringHolder str)
static

Does a simple test on the string to look for the encoding prefix. Returns true if found, indicating that the string is already encoded. This lets us avoid double-encoding the string.


The documentation for this class was generated from the following file: