12 #ifndef __UT_StringMMPattern_h__
13 #define __UT_StringMMPattern_h__
20 class ut_CompiledMMPatternImpl;
28 const char *pattern_buffer,
29 bool case_sensitive =
true,
30 const char *separators =
", ");
36 bool isEmpty()
const {
return myImpl ==
nullptr; }
38 void compileInPlace(
char *pattern_buffer,
bool case_sensitive =
true,
39 const char *separators =
", ");
44 separators[0] = separator;
46 compileInPlace(pattern_buffer, case_sensitive, separators);
48 void compile(
const char *pattern_buffer,
bool case_sensitive =
true,
49 const char *separators =
", ");
50 void compile(
const char *pattern_buffer,
bool case_sensitive,
54 separators[0] = separator;
56 compile(pattern_buffer, case_sensitive, separators);
59 int64 getMemoryUsage(
bool inclusive)
const;
void compileInPlace(char *pattern_buffer, bool case_sensitive, char separator)
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
void compile(const char *pattern_buffer, bool case_sensitive, char separator)