Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreStrings.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_STRINGS__
8 #define __HDI_CORE_STRINGS__
9 
10 #include <vector>
11 
12 #include "hdicoreTypes.h"
13 
14 namespace hdi
15 {
16  namespace core
17  {
18  namespace strings
19  {
20  typedef std::vector<std::string> StringVector;
21 
31  uint32_t substrCount(const std::string& str_, const std::string& substr_);
32 
43  bool split(const std::string& str_, const std::string& delim_, StringVector& elements__);
44 
53  std::string trim(const std::string& str_);
54 
63  std::string uppercase(const std::string& str_);
64 
73  std::string lowercase(const std::string& str_);
74 
86  std::string replaceAll(const std::string& subject_, const std::string& search_, const std::string& replace_);
87 
96  UTF16String utf8ToUTF16(const UTF8String& str_);
97 
106  UTF32String utf8ToUTF32(const UTF8String& str_);
107 
116  UTF8String utf16ToUTF8(const UTF16String& str_);
117 
126  UTF32String utf16ToUTF32(const UTF16String& str_);
127 
136  UTF8String utf32ToUTF8(const UTF32String& str_);
137 
146  UTF16String utf32ToUTF16(const UTF32String& str_);
147  }
148  }
149 }
150 
151 #endif
152 // __HDI_CORE_STRINGS__
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
Definition: hdicoreaiArray.h:12