128 static ETL_CONSTEXPR
bool eq(char_type a, char_type b) ETL_NOEXCEPT
134 static ETL_CONSTEXPR
bool lt(char_type a, char_type b) ETL_NOEXCEPT
140 static ETL_CONSTEXPR14
size_t length(
const char_type*
begin) ETL_NOEXCEPT
142 if (
begin == ETL_NULLPTR)
158 static ETL_CONSTEXPR14
size_t length(
const char_type* str,
size_t max_length) ETL_NOEXCEPT
164 while ((count < max_length) && (*str++ != 0))
174 static ETL_CONSTEXPR14
void assign(char_type& r,
const char_type& c) ETL_NOEXCEPT
180 static ETL_CONSTEXPR14 char_type* assign(char_type* p,
size_t n, char_type c) ETL_NOEXCEPT
182 if (p != ETL_NULLPTR)
184 etl::fill_n(p, n, c);
191 static ETL_CONSTEXPR14 char_type* move(char_type* dst,
const char_type* src,
size_t count) ETL_NOEXCEPT
193 if ((dst < src) || (dst > (src + count)))
195 etl::copy_n(src, count, dst);
199 etl::copy_n(ETL_OR_STD::reverse_iterator<const char_type*>(src + count),
201 ETL_OR_STD::reverse_iterator<char_type*>(dst + count));
208 static ETL_CONSTEXPR14 char_type* copy(char_type* dst,
const char_type* src,
size_t count) ETL_NOEXCEPT
210 etl::copy_n(src, count, dst);
216 static ETL_CONSTEXPR14
int compare(
const char_type* s1,
const char_type* s2,
size_t count) ETL_NOEXCEPT
218 for (
size_t i = 0UL; i < count; ++i)
220 const char_type c1 = *s1++;
221 const char_type c2 = *s2++;
237 static ETL_CONSTEXPR14
const char_type* find(
const char_type* p,
size_t count,
const char_type& ch) ETL_NOEXCEPT
239 for (
size_t i = 0UL; i < count; ++i)
253 static ETL_CONSTEXPR char_type to_char_type(int_type c) ETL_NOEXCEPT
255 return static_cast<char_type
>(c);
259 static ETL_CONSTEXPR int_type to_int_type(char_type c) ETL_NOEXCEPT
261 return static_cast<int_type
>(c);
265 static ETL_CONSTEXPR
bool eq_int_type(int_type c1, int_type c2) ETL_NOEXCEPT
271 static ETL_CONSTEXPR int_type eof() ETL_NOEXCEPT
277 static ETL_CONSTEXPR int_type not_eof(int_type e) ETL_NOEXCEPT
279 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:330
ETL_CONSTEXPR14 T * strncpy(T *dst, const T *src, size_t n) ETL_NOEXCEPT
Alternative strncpy for all character types.
Definition char_traits.h:373
ETL_CONSTEXPR14 T * strcpy(T *dst, const T *src) ETL_NOEXCEPT
Alternative strcpy for all character types.
Definition char_traits.h:355
ETL_CONSTEXPR14 int strcmp(const T *t1, const T *t2) ETL_NOEXCEPT
Alternative strcmp for all character types.
Definition char_traits.h:305
ETL_CONSTEXPR14 size_t strlen(const T *t) ETL_NOEXCEPT
Alternative strlen for all character types.
Definition char_traits.h:287