10 #ifndef INCLUDED_RTL_STRINGUTILS_HXX 11 #define INCLUDED_RTL_STRINGUTILS_HXX 25 #ifdef RTL_STRING_UNITTEST 26 #define rtl rtlunittest 32 #ifdef RTL_STRING_UNITTEST 36 #if defined LIBO_INTERNAL_ONLY 76 static_cast<unsigned char>(C) < 0x80,
77 "non-ASCII character in OUStringLiteral1");
80 #if defined _MSC_VER && _MSC_VER <= 1900 && !defined __clang__ 82 template<
char C>
using OUStringLiteral1 = OUStringLiteral1_<C>;
83 #pragma warning(disable: 4239) 85 template<
char C>
using OUStringLiteral1 = OUStringLiteral1_<C>
const;
91 namespace libreoffice_internal
118 template<
typename T1,
typename T2 =
void >
121 static const bool ok =
false;
123 template<
typename T >
127 static const bool ok =
true;
129 template<
typename T >
133 static const bool ok =
true;
136 template<
typename T1,
typename T2 >
140 template<
typename T,
int N >
145 #ifdef RTL_STRING_UNITTEST 147 template<
typename T >
152 template<
typename T >
159 template<
typename T1,
typename T2 =
void >
162 static const bool ok =
false;
164 template< std::
size_t N,
typename T >
168 static const std::size_t length = N - 1;
169 static const bool ok =
true;
170 static bool isValid(
char const (& literal)[N])
171 {
return std::strlen(literal) == length; }
172 static char const *
toPointer(
char const (& literal)[N]) {
return literal; }
174 #if defined LIBO_INTERNAL_ONLY 176 #if defined __GNUC__ && __GNUC__ == 4 && __GNUC_MINOR__ <= 8 \
177 && !defined __clang__
178 OUStringLiteral1_<C>
const,
185 static const std::size_t length = 1;
186 static const bool ok =
true;
187 static bool isValid(OUStringLiteral1_<C>) {
return true; }
188 static char const * toPointer(OUStringLiteral1_<C>
const & literal)
189 {
return &literal.c; }
194 template<
typename T >
207 template<
typename T >
220 #if defined LIBO_INTERNAL_ONLY && defined _MSC_VER && _MSC_VER <= 1900 225 template<
typename T1,
typename T2 =
void >
228 static const bool ok =
false;
230 template<
typename T >
234 static const bool ok =
true;
236 template<
typename T >
240 static const bool ok =
true;
244 template<
typename T,
bool >
249 template<
typename T >
260 #endif // INCLUDED_RTL_STRINGUTILS_HXX static bool isValid(char const (&literal)[N])
Definition: stringutils.hxx:170
Definition: stringutils.hxx:195
T Type
Definition: stringutils.hxx:126
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:624
Definition: stringutils.hxx:245
T Type
Definition: stringutils.hxx:252
T Type
Definition: stringutils.hxx:233
Definition: stringutils.hxx:160
T Type
Definition: stringutils.hxx:132
static char const * toPointer(char const (&literal)[N])
Definition: stringutils.hxx:172
T Type
Definition: stringutils.hxx:167
Definition: stringutils.hxx:119
sal_uInt16 sal_Unicode
Definition: types.h:155
T Type
Definition: stringutils.hxx:239
Definition: bootstrap.hxx:29
Definition: stringutils.hxx:137
Definition: stringutils.hxx:117
Definition: stringutils.hxx:226
T Type
Definition: stringutils.hxx:143
Dummy Type
Definition: stringutils.hxx:210
Dummy Type
Definition: stringutils.hxx:197
Definition: stringutils.hxx:208