HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ustring.h File Reference
#include <OpenImageIO/dassert.h>
#include <OpenImageIO/export.h>
#include <OpenImageIO/oiioversion.h>
#include <OpenImageIO/string_view.h>
#include <OpenImageIO/strutil.h>
#include <cstring>
#include <iostream>
#include <string>
+ Include dependency graph for ustring.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ustring
 
struct  ustring::TableRep
 
class  ustringhash
 
class  ustringLess
 
class  ustringPtrIsLess
 
struct  std::hash< OIIO::ustring >
 
struct  std::hash< OIIO::ustringhash >
 
struct  formatter< OIIO::ustring >
 
struct  formatter< OIIO::ustringhash >
 

Namespaces

 Strutil
 String-related utilities.
 
 std
 std::hash specialization for UT_IntrusivePtr<T>
 

Macros

#define OPENIMAGEIO_USTRING_H
 
#define OIIO_USTRING_HAS_USTRINGHASH   1
 
#define OIIO_USTRING_HAS_CTR_FROM_USTRINGHASH   1
 
#define OIIO_USTRING_HAS_STDHASH   1
 
#define OIIO_HAS_USTRINGHASH_FORMATTER   1
 

Functions

ustring operator""_us (const char *str, std::size_t len)
 ustring string literal operator More...
 
OIIO_DEVICE_CONSTEXPR ustringhash operator""_ush (const char *str, std::size_t len)
 ustringhash string literal operator More...
 
bool iequals (ustring a, ustring b)
 
bool iequals (ustring a, const std::string &b)
 
bool iequals (const std::string &a, ustring b)
 
float Strutil::stof (ustring s)
 
template<>
std::string Strutil::to_string (const ustring &value)
 
template<>
std::string Strutil::to_string (const ustringhash &value)
 

Macro Definition Documentation

#define OIIO_HAS_USTRINGHASH_FORMATTER   1

Definition at line 34 of file ustring.h.

#define OIIO_USTRING_HAS_CTR_FROM_USTRINGHASH   1

Definition at line 32 of file ustring.h.

#define OIIO_USTRING_HAS_STDHASH   1

Definition at line 33 of file ustring.h.

#define OIIO_USTRING_HAS_USTRINGHASH   1

Definition at line 31 of file ustring.h.

#define OPENIMAGEIO_USTRING_H

Definition at line 7 of file ustring.h.

Function Documentation

bool iequals ( ustring  a,
ustring  b 
)
inline

Case-insensitive comparison of ustrings. For speed, this always uses a static locale that doesn't require a mutex lock.

Definition at line 1086 of file ustring.h.

bool iequals ( ustring  a,
const std::string &  b 
)
inline

Definition at line 1092 of file ustring.h.

bool iequals ( const std::string &  a,
ustring  b 
)
inline

Definition at line 1098 of file ustring.h.

ustring operator""_us ( const char *  str,
std::size_t  len 
)
inline

ustring string literal operator

Definition at line 1036 of file ustring.h.

OIIO_DEVICE_CONSTEXPR ustringhash operator""_ush ( const char *  str,
std::size_t  len 
)

ustringhash string literal operator

Definition at line 1044 of file ustring.h.