20 #ifndef matchcompilerH
21 #define matchcompilerH
27 template<
unsigned int n>
42 template<
unsigned int n>
43 inline bool equalN(
const char s1[],
const char s2[])
45 return (*s1 == *s2) &&
equalN<n-1>(s1+1, s2+1);
54 template<
unsigned int n>
57 return equalN<n>(s1.c_str(), s2);
60 template<
unsigned int n>
66 template<
unsigned int n>
const char(&)[n] StringRef
bool equalN(const char s1[], const char s2[])
ConstString< n > makeConstString(const char(&s)[n])
bool operator==(const std::string &s1, ConstString< n > const &s2)
bool operator!=(const std::string &s1, ConstString< n > const &s2)
bool equalN< 0 >(const char[], const char[])