nlib
|
Wraps functions like strlen
and strcpy
so they can be safely used.
More...
Go to the source code of this file.
Namespaces | |
nn::nlib | |
Implements stream-related classes usually commonly used, various containers, and other gadget classes. nlib_ns is an alias. | |
Functions | |
size_t | nn::nlib::StrLen (const char *str) noexcept |
Wraps the nlib_strlen function. | |
size_t | nn::nlib::StrLen (const nlib_utf16_t *str) noexcept |
Wraps the nlib_utf16len function. | |
size_t | nn::nlib::StrLen (const nlib_utf32_t *str) noexcept |
Wraps the nlib_utf32len function. | |
size_t | nn::nlib::StrLen (const wchar_t *str) noexcept |
Wraps the nlib_wcslen function. | |
errno_t | nn::nlib::CodePointCount (const char *str, size_t *count) noexcept |
Wraps the nlib_strcplen function. | |
errno_t | nn::nlib::CodePointCount (const nlib_utf16_t *str, size_t *count) noexcept |
Wraps the nlib_utf16cplen function. | |
errno_t | nn::nlib::CodePointCount (const nlib_utf32_t *str, size_t *count) noexcept |
Wraps the nlib_utf32cplen function. | |
errno_t | nn::nlib::CodePointCount (const wchar_t *str, size_t *count) noexcept |
Wraps the nlib_wcscplen function. | |
int | nn::nlib::StrCmp (const char *s1, const char *s2) noexcept |
Wraps the strcmp function. | |
int | nn::nlib::StrCmp (const wchar_t *s1, const wchar_t *s2) noexcept |
Wraps the wcscmp function. | |
int | nn::nlib::StrCmp (const nlib_utf16_t *s1, const nlib_utf16_t *s2) noexcept |
Compares UTF-16 strings in the same way as the strcmp function. | |
int | nn::nlib::StrCmp (const nlib_utf32_t *s1, const nlib_utf32_t *s2) noexcept |
Compares UTF-32 strings in the same way as the strcmp function. | |
int | nn::nlib::StrNcmp (const char *s1, const char *s2, size_t n) noexcept |
Wraps the strncmp function. | |
int | nn::nlib::StrNcmp (const wchar_t *s1, const wchar_t *s2, size_t n) noexcept |
Wraps the wcsncmp function. | |
int | nn::nlib::StrNcmp (const nlib_utf16_t *s1, const nlib_utf16_t *s2, size_t n) noexcept |
Compares UTF-16 strings in the same way as the strncmp function. | |
int | nn::nlib::StrNcmp (const nlib_utf32_t *s1, const nlib_utf32_t *s2, size_t n) noexcept |
Compares UTF-32 strings in the same way as the strncmp function. | |
errno_t | nn::nlib::StrCpy (char *dest, size_t dest_size, const char *src) noexcept |
Wraps the nlib_strcpy function. | |
errno_t | nn::nlib::StrCpy (nlib_utf16_t *dest, size_t dest_size, const nlib_utf16_t *src) noexcept |
Wraps the nlib_utf16cpy function. | |
errno_t | nn::nlib::StrCpy (nlib_utf32_t *dest, size_t dest_size, const nlib_utf32_t *src) noexcept |
Wraps the nlib_utf32cpy function. | |
errno_t | nn::nlib::StrCpy (wchar_t *dest, size_t dest_size, const wchar_t *src) noexcept |
Wraps the nlib_wcscpy function. | |
template<class T , size_t N> | |
errno_t | nn::nlib::StrCpy (T(&dest)[N], const T *src) noexcept |
A template overload of the above function. More... | |
errno_t | nn::nlib::StrNcpy (char *dest, size_t dest_size, const char *src, size_t n) noexcept |
Wraps the nlib_strncpy function. | |
errno_t | nn::nlib::StrNcpy (nlib_utf16_t *dest, size_t dest_size, const nlib_utf16_t *src, size_t n) noexcept |
Wraps the nlib_utf16ncpy function. | |
errno_t | nn::nlib::StrNcpy (nlib_utf32_t *dest, size_t dest_size, const nlib_utf32_t *src, size_t n) noexcept |
Wraps the nlib_utf32ncpy function. | |
errno_t | nn::nlib::StrNcpy (wchar_t *dest, size_t dest_size, const wchar_t *src, size_t n) noexcept |
Wraps the nlib_wcsncpy function. | |
template<class T , size_t N> | |
errno_t | nn::nlib::StrNcpy (T(&dest)[N], const T *src, size_t n) noexcept |
A template overload of the above function. More... | |
template<class T , size_t N> | |
errno_t | nn::nlib::StrCat (T(&dest)[N], const T *src) noexcept |
A template overload of the above function. More... | |
template<class T , size_t N> | |
errno_t | nn::nlib::StrNcat (T(&dest)[N], const T *src, size_t n) noexcept |
A template overload of the above function. More... | |
int | nn::nlib::VsnPrintfFallback (char *buf, size_t size, const char *fmt, va_list args) noexcept |
The fallback for VsnPrintf . More... | |
int | nn::nlib::VsnPrintfFallback (wchar_t *buf, size_t size, const wchar_t *fmt, va_list args) noexcept |
A version that takes a wchar_t string as the argument. | |
int | nn::nlib::VsnPrintfFallback (nlib_utf16_t *buf, size_t size, const nlib_utf16_t *fmt, va_list args) noexcept |
A version that takes an nlib_utf16_t(char16_t) string as the argument. | |
int | nn::nlib::VsnPrintfFallback (nlib_utf32_t *buf, size_t size, const nlib_utf32_t *fmt, va_list args) noexcept |
A version that takes an nlib_utf32_t(char32_t) string as the argument. | |
int | nn::nlib::VsnPrintf (char *buf, size_t size, const char *fmt, va_list args) noexcept |
Executes vsnprintf . More... | |
int | nn::nlib::VsnPrintf (wchar_t *buf, size_t size, const wchar_t *fmt, va_list args) noexcept |
Executes vsnprintf . More... | |
int | nn::nlib::VsnPrintf (nlib_utf16_t *buf, size_t size, const nlib_utf16_t *fmt, va_list args) noexcept |
If the wide character is two bytes, VsnPrintf() for wchar_t is used. If the wide character is four bytes, VsnPrintfFallback() is used. | |
int | nn::nlib::VsnPrintf (nlib_utf32_t *buf, size_t size, const nlib_utf32_t *fmt, va_list args) noexcept |
If the wide character is four bytes, VsnPrintf() for wchar_t is used. If the wide character is two bytes, VsnPrintfFallback() is used. | |
template<size_t N, class CH > | |
int | nn::nlib::VsnPrintf (CH(&buf)[N], const CH *fmt, va_list args) noexcept |
A template overload of the above function. | |
template<class CH > | |
int | nn::nlib::SnPrintf (CH *buf, size_t size, const CH *fmt,...) noexcept |
Internally runs VsnPrintf() . | |
template<size_t N, class CH > | |
int | nn::nlib::SnPrintf (CH(&buf)[N], const CH *fmt,...) noexcept |
A template overload of the above function. | |
Wraps functions like strlen
and strcpy
so they can be safely used.
Definition in file Cstring.h.
© Nintendo Co., Ltd. All rights reserved.