136 static ETL_CONSTEXPR
bool eq(char_type a, char_type b) ETL_NOEXCEPT
142 static ETL_CONSTEXPR
bool lt(char_type a, char_type b) ETL_NOEXCEPT
148 static ETL_CONSTEXPR14
size_t length(
const char_type*
begin) ETL_NOEXCEPT
150 if (
begin == ETL_NULLPTR)
166 static ETL_CONSTEXPR14
size_t length(
const char_type* str,
size_t max_length) ETL_NOEXCEPT
172 while ((count < max_length) && (*str++ != 0))
182 static ETL_CONSTEXPR14
void assign(char_type& r,
const char_type& c) ETL_NOEXCEPT
188 static ETL_CONSTEXPR14 char_type* assign(char_type* p,
size_t n, char_type c) ETL_NOEXCEPT
190 if (p != ETL_NULLPTR)
192 etl::fill_n(p, n, c);
199 static ETL_CONSTEXPR14 char_type* move(char_type* dst,
const char_type* src,
size_t count) ETL_NOEXCEPT
201 if ((dst < src) || (dst > (src + count)))
203 etl::copy_n(src, count, dst);
207 etl::copy_n(ETL_OR_STD::reverse_iterator<const char_type*>(src + count), count, ETL_OR_STD::reverse_iterator<char_type*>(dst + count));
214 static ETL_CONSTEXPR14 char_type* copy(char_type* dst,
const char_type* src,
size_t count) ETL_NOEXCEPT
216 etl::copy_n(src, count, dst);
222 static ETL_CONSTEXPR14
int compare(
const char_type* s1,
const char_type* s2,
size_t count) ETL_NOEXCEPT
224 for (
size_t i = 0UL; i < count; ++i)
226 const char_type c1 = *s1++;
227 const char_type c2 = *s2++;
243 static ETL_CONSTEXPR14
const char_type* find(
const char_type* p,
size_t count,
const char_type& ch) ETL_NOEXCEPT
245 for (
size_t i = 0UL; i < count; ++i)
259 static ETL_CONSTEXPR char_type to_char_type(int_type c) ETL_NOEXCEPT
261 return static_cast<char_type
>(c);
265 static ETL_CONSTEXPR int_type to_int_type(char_type c) ETL_NOEXCEPT
267 return static_cast<int_type
>(c);
271 static ETL_CONSTEXPR
bool eq_int_type(int_type c1, int_type c2) ETL_NOEXCEPT
277 static ETL_CONSTEXPR int_type eof() ETL_NOEXCEPT
279 return static_cast<int_type
>(-1);
283 static ETL_CONSTEXPR int_type not_eof(int_type e) ETL_NOEXCEPT
285 return (e == eof()) ? eof() - 1 : e;
ETL_CONSTEXPR14 int strncmp(const T *t1, const T *t2, size_t n) ETL_NOEXCEPT
Alternative strncmp for all character types.
Definition char_traits.h:336
ETL_CONSTEXPR14 T * strncpy(T *dst, const T *src, size_t n) ETL_NOEXCEPT
Alternative strncpy for all character types.
Definition char_traits.h:379
ETL_CONSTEXPR14 T * strcpy(T *dst, const T *src) ETL_NOEXCEPT
Alternative strcpy for all character types.
Definition char_traits.h:361
ETL_CONSTEXPR14 int strcmp(const T *t1, const T *t2) ETL_NOEXCEPT
Alternative strcmp for all character types.
Definition char_traits.h:311
ETL_CONSTEXPR14 size_t strlen(const T *t) ETL_NOEXCEPT
Alternative strlen for all character types.
Definition char_traits.h:293