strfunc.h File Reference

strfunc.h File Reference#

Composable Kernel: strfunc.h File Reference
strfunc.h File Reference
#include "../stream.h"
#include <cwchar>

Go to the source code of this file.

Namespaces

namespace  internal

Functions

template<typename Ch>
SizeType internal::StrLen (const Ch *s)
 Custom strlen() which works on different character types.
template<>
SizeType internal::StrLen (const char *s)
template<>
SizeType internal::StrLen (const wchar_t *s)
template<typename Ch>
int internal::StrCmp (const Ch *s1, const Ch *s2)
 Custom strcmpn() which works on different character types.
template<typename Encoding>
bool internal::CountStringCodePoint (const typename Encoding::Ch *s, SizeType length, SizeType *outCount)
 Returns number of code points in a encoded string.