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

#include <HUSD_Token.h>

+ Inheritance diagram for HUSD_Token:

Public Member Functions

 HUSD_Token ()
 
 HUSD_Token (const char *src)
 
 HUSD_Token (const std::string &src)
 
 HUSD_Token (const UT_StringHolder &src)
 
- Public Member Functions inherited from UT_StringHolder
SYS_FORCE_INLINE UT_StringHolder ()
 
SYS_FORCE_INLINE UT_StringHolder (const char *str)
 Will make a copy of the provided string. More...
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringReferenceType, const char *str)
 Will make a shallow reference. More...
 
SYS_FORCE_INLINE UT_StringHolder (const char *data, exint length)
 Will make a copy of the provided string. More...
 
 UT_StringHolder (const char *data, bool bad)=delete
 
SYS_FORCE_INLINE UT_StringHolder (const char *data, int32 length)
 
SYS_FORCE_INLINE UT_StringHolder (const char *data, uint32 length)
 
SYS_FORCE_INLINE UT_StringHolder (const char *data, uint64 length)
 
SYS_FORCE_INLINE UT_StringHolder (const std::string &str)
 Will make a copy of the provided string. More...
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringReferenceType, const std::string &str)
 This will make a shallow reference to the contents of the string. More...
 
 UT_StringHolder (const UT_WorkBuffer &str)
 Will make a copy of the provided string. More...
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringReferenceType, const UT_WorkBuffer &str)
 This will make a shallow reference to the contents of the string. More...
 
SYS_FORCE_INLINE UT_StringHolder (const UT_String &str)
 Will make a copy of the provided string. More...
 
 UT_StringHolder (UT_String &&str)
 Attempts to steal the string's buffer. More...
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringReferenceType, const UT_String &str)
 This will make a shallow reference to the contents of the string. More...
 
 UT_StringHolder (const UT_StringView &sv)
 Will make a copy of the provided string. More...
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringReferenceType, const UT_StringRef &ref)
 Makes a shallow reference to the contents of the UT_StringRef. More...
 
 UT_StringHolder (const UT_StringRef &ref)
 
 UT_StringHolder (UT_StringRef &&ref)
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringSentinelType sentinel)
 Construct as a sentinel value. More...
 
SYS_FORCE_INLINE UT_StringHolder (const UT_StringHolder &str)
 Makes a copy of the provided string. More...
 
SYS_FORCE_INLINE UT_StringHolder (UT_StringHolder &&a) noexcept
 Move constructor. Steals the working data from the original. More...
 
 UT_StringHolder (UT_WorkBuffer &&buf) noexcept
 Move constructor. Steals the data from the work buffer. More...
 
SYS_FORCE_INLINE UT_StringHolderoperator= (const UT_StringHolder &s)
 Makes a bit-wise copy of the string and adjust the reference count. More...
 
SYS_FORCE_INLINE UT_StringHolderoperator= (UT_StringHolder &&s)
 
UT_StringHolderoperator= (UT_WorkBuffer &&buf)
 Move the contents buffer into this string holder. More...
 
SYS_FORCE_INLINE void swap (UT_StringHolder &other)
 
SYS_FORCE_INLINE void swap (UT_StringRef &other)
 
template<typename... Args>
size_t format (const char *fmt, const Args &...args)
 Format a string using the same formatting codes as UTformat. More...
 
size_t format (const char *fmt, std::initializer_list< UT::Format::ArgValue > args)
 
template<typename... Args>
size_t sprintf (const char *fmt, const Args &...args)
 Format a string using the same formatting codes as UTprintf. More...
 
size_t sprintf (const char *fmt, std::initializer_list< UT::Format::ArgValue > args)
 
int substitute (const char *find, const char *replacement, int count=-1)
 
int substitute (const char *find, const char *replacement, bool all)
 Convenience version of substitute() for all or single occurrence. More...
 
int strip (const char *chars)
 
bool load (UT_IStream &is)
 Load string from stream. Use is.eof() to check eof status. More...
 
UT_StringHolderoperator+= (const UT_StringRef &src)
 
bool trimBoundingSpace ()
 
bool trimSpace (bool leave_single_space_between_words=false)
 
void prepend (const UT_StringRef &prefix)
 Prepend a string. More...
 
- Public Member Functions inherited from UT_StringRef
SYS_FORCE_INLINE UT_StringRef ()
 
SYS_FORCE_INLINE UT_StringRef (const char *str)
 Will make a shallow reference. More...
 
SYS_FORCE_INLINE UT_StringRef (const char *data, exint length)
 
SYS_FORCE_INLINE UT_StringRef (const UT_StringLit &lit)
 Construct from string literal. More...
 
SYS_FORCE_INLINE UT_StringRef (const std::string &str)
 This will make a shallow reference to the contents of the string. More...
 
 UT_StringRef (const UT_WorkBuffer &str)
 This will make a shallow reference to the contents of the string. More...
 
SYS_FORCE_INLINE UT_StringRef (const UT_String &str)
 This will make a shallow reference to the contents of the string. More...
 
SYS_FORCE_INLINE UT_StringRef (const UT_StringRef &s) noexcept
 Shares a reference with the source. More...
 
SYS_FORCE_INLINE UT_StringRef (UT_StringRef &&s) noexcept
 Move constructor. Steals the working data from the original. More...
 
SYS_FORCE_INLINE ~UT_StringRef ()
 
bool isUnique () const
 Returns true this object is the sole owner of the underlying string. More...
 
UT_StringRefoperator= (const UT_StringRef &s)
 Shares a reference with the source. More...
 
SYS_FORCE_INLINE UT_StringRefoperator= (UT_StringRef &&s)
 
bool operator== (const UT_StringRef &s) const
 
bool operator== (const char *s) const
 
bool operator== (const UT_String &s) const
 
bool operator!= (const UT_StringRef &s) const
 
bool operator!= (const char *s) const
 
bool operator!= (const UT_String &s) const
 
int spaceship (const UT_StringRef &k) const
 
bool operator< (const UT_StringRef &k) const
 
bool operator<= (const UT_StringRef &k) const
 
bool operator> (const UT_StringRef &k) const
 
bool operator>= (const UT_StringRef &k) const
 
int compare (const UT_StringRef &str, bool ignore_case=false) const
 
bool equal (const UT_StringRef &str, bool ignore_case=false) const
 
SYS_FORCE_INLINE SYS_SAFE_BOOL operator bool () const
 Test whether the string is defined or not. More...
 
bool startsWith (const UT_StringView &pfx, bool case_sense=true) const
 Imported from UT_String. More...
 
bool endsWith (const UT_StringView &suffix, bool case_sense=true) const
 
bool match (const char *pattern, bool case_sensitive=true) const
 
bool contains (const char *pattern, bool case_sensitive=true) const
 
const char * fcontain (const char *pattern, bool case_sensitive=true) const
 
const char * findWord (const char *word) const
 
bool multiMatch (const char *pattern, bool case_sensitive, char separator) const
 
bool multiMatch (const char *pattern, bool case_sensitive=true, const char *separators=", ", bool *explicitly_excluded=0, int *match_index=0, ut_PatternRecord *pattern_record=nullptr) const
 
bool multiMatch (const UT_StringMMPattern &pattern, bool *explicitly_excluded=0, int *match_index=0, ut_PatternRecord *pattern_record=nullptr) const
 
bool matchRegex (const char *expr) const
 
int toInt () const
 
fpreal toFloat () const
 
bool isFloat (bool skip_spaces=false, bool loose=false) const
 Determine if string can be seen as a single floating point number. More...
 
bool isInteger (bool skip_spaces=false) const
 Determine if string can be seen as a single integer number. More...
 
SYS_FORCE_INLINE operator const char * () const
 
SYS_FORCE_INLINE const char * buffer () const
 
SYS_FORCE_INLINE const char * nonNullBuffer () const
 
SYS_FORCE_INLINE const_iterator begin () const
 
SYS_FORCE_INLINE const_iterator end () const
 
std::string toStdString () const
 
SYS_FORCE_INLINE void swap (UT_StringRef &other)
 
SYS_FORCE_INLINE bool isstring () const
 
bool isEmpty () const
 Same as !isstring() More...
 
bool empty () const
 method name that maches std::string More...
 
SYS_FORCE_INLINE bool hasNonSpace () const
 
SYS_FORCE_INLINE exint findCharIndex (char c) const
 Find the location of the character (or -1 if not found) More...
 
SYS_FORCE_INLINE exint findCharIndex (const char *str) const
 Find the first location of any of the characters in the str passed in. More...
 
SYS_FORCE_INLINE exint findCharIndex (char c, exint start_offset) const
 Find the location of the character (or -1 if not found) More...
 
SYS_FORCE_INLINE exint findCharIndex (const char *str, exint start_offset) const
 Find the first location of any of the characters in the str passed in. More...
 
SYS_FORCE_INLINE exint lastCharIndex (char c, int occurrence_number=1) const
 
SYS_FORCE_INLINE exint countChar (char c) const
 Count the number of times the character c occurs. More...
 
SYS_FORCE_INLINE void clear ()
 
SYS_FORCE_INLINE const char * c_str () const
 
SYS_FORCE_INLINE const char * data () const
 
exint length () const
 
unsigned hash () const
 
void reference (const char *src)
 
void reference (const char *str, exint length)
 
void fastReferenceWithStrlen (const char *src, exint length)
 old name of method: More...
 
int64 getMemoryUsage (bool inclusive) const
 
SYS_NO_DISCARD_RESULT UT_StringRef forceValidVariableName (const char *safechars=nullptr) const
 
SYS_NO_DISCARD_RESULT UT_StringRef toLower () const
 
SYS_NO_DISCARD_RESULT UT_StringRef toUpper () const
 
void harden (const char *src)
 
void adoptFromMalloc (const char *str, exint length)
 
void adoptFromNew (const char *str, exint length)
 
void adoptFromString (UT_String &str)
 
void adoptFromCharArray (UT_Array< char > &data)
 
char * stealAsMalloc ()
 
void saveBinary (std::ostream &os) const
 Save string to binary stream. More...
 
void saveAscii (std::ostream &os) const
 
SYS_FORCE_INLINE UT_StringRef (UT_StringSentinelType)
 
SYS_FORCE_INLINE UT_StringRef (UT_StringSentinelType, const char *str)
 str==nullptr turns into sentinel, otherwise act like UT_StringRef(str) More...
 
SYS_FORCE_INLINE bool isSentinel () const
 
SYS_FORCE_INLINE void makeSentinel ()
 

Additional Inherited Members

- Public Types inherited from UT_StringHolder
enum  UT_StringReferenceType { REFERENCE }
 
- Public Types inherited from UT_StringRef
enum  StorageMode { STORE_EXTERNAL, STORE_NEW, STORE_MALLOC, STORE_INLINE }
 
typedef char value_type
 
typedef const char * const_iterator
 Iterators. More...
 
enum  UT_StringSentinelType { SENTINEL }
 
- Static Public Member Functions inherited from UT_StringRef
static SYS_FORCE_INLINE unsigned hash_string (const char *str, exint len)
 
static bool verifyStringLit ()
 
- Static Public Attributes inherited from UT_StringHolder
static const UT_StringHolder theEmptyString
 
static const UT_StringHolder theSentinel
 
- Protected Types inherited from UT_StringHolder
enum  UT_StringLiteralType { LITERAL }
 A marker enum to use this constructor. More...
 
- Protected Member Functions inherited from UT_StringHolder
SYS_FORCE_INLINE UT_StringHolder (UT_StringLiteralType, const char *str, size_t length)
 

Detailed Description

Definition at line 27 of file HUSD_Token.h.

Constructor & Destructor Documentation

HUSD_Token::HUSD_Token ( )
HUSD_Token::HUSD_Token ( const char *  src)
HUSD_Token::HUSD_Token ( const std::string src)
HUSD_Token::HUSD_Token ( const UT_StringHolder src)

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