|
size_t | StrLen (const char *str) noexcept |
| nlib_strlen()をラップします。
|
|
size_t | StrLen (const nlib_utf16_t *str) noexcept |
| nlib_utf16len()をラップします。
|
|
size_t | StrLen (const nlib_utf32_t *str) noexcept |
| nlib_utf32len()をラップします。
|
|
size_t | StrLen (const wchar_t *str) noexcept |
| nlib_wcslen()をラップします。
|
|
errno_t | CodePointCount (const char *str, size_t *count) noexcept |
| nlib_strcplen()をラップします。
|
|
errno_t | CodePointCount (const nlib_utf16_t *str, size_t *count) noexcept |
| nlib_utf16cplen()をラップします。
|
|
errno_t | CodePointCount (const nlib_utf32_t *str, size_t *count) noexcept |
| nlib_utf32cplen()をラップします。
|
|
errno_t | CodePointCount (const wchar_t *str, size_t *count) noexcept |
| nlib_wcscplen()をラップします。
|
|
int | StrCmp (const char *s1, const char *s2) noexcept |
| strcmp() をラップします。
|
|
int | StrCmp (const wchar_t *s1, const wchar_t *s2) noexcept |
| wcscmp() をラップします。
|
|
int | StrCmp (const nlib_utf16_t *s1, const nlib_utf16_t *s2) noexcept |
| UTF-16文字列をstrcmp() と同様に比較します。
|
|
int | StrCmp (const nlib_utf32_t *s1, const nlib_utf32_t *s2) noexcept |
| UTF-32文字列をstrcmp() と同様に比較します。
|
|
int | StrNcmp (const char *s1, const char *s2, size_t n) noexcept |
| strncmp() をラップします。
|
|
int | StrNcmp (const wchar_t *s1, const wchar_t *s2, size_t n) noexcept |
| wcsncmp() をラップします。
|
|
int | StrNcmp (const nlib_utf16_t *s1, const nlib_utf16_t *s2, size_t n) noexcept |
| UTF-16文字列をstrncmp() と同様に比較します。
|
|
int | StrNcmp (const nlib_utf32_t *s1, const nlib_utf32_t *s2, size_t n) noexcept |
| UTF-32文字列をstrncmp() と同様に比較します。
|
|
errno_t | StrCpy (char *dest, size_t dest_size, const char *src) noexcept |
| nlib_strcpy() をラップします。
|
|
errno_t | StrCpy (nlib_utf16_t *dest, size_t dest_size, const nlib_utf16_t *src) noexcept |
| nlib_utf16cpy() をラップします。
|
|
errno_t | StrCpy (nlib_utf32_t *dest, size_t dest_size, const nlib_utf32_t *src) noexcept |
| nlib_utf32cpy() をラップします。
|
|
errno_t | StrCpy (wchar_t *dest, size_t dest_size, const wchar_t *src) noexcept |
| nlib_wcscpy() をラップします。
|
|
template<class T , size_t N> |
errno_t | StrCpy (T(&dest)[N], const T *src) noexcept |
| 上記関数のテンプレートオーバーロードです。 [詳解]
|
|
errno_t | StrNcpy (char *dest, size_t dest_size, const char *src, size_t n) noexcept |
| nlib_strncpy() をラップします。
|
|
errno_t | StrNcpy (nlib_utf16_t *dest, size_t dest_size, const nlib_utf16_t *src, size_t n) noexcept |
| nlib_utf16ncpy() をラップします。
|
|
errno_t | StrNcpy (nlib_utf32_t *dest, size_t dest_size, const nlib_utf32_t *src, size_t n) noexcept |
| nlib_utf32ncpy() をラップします。
|
|
errno_t | StrNcpy (wchar_t *dest, size_t dest_size, const wchar_t *src, size_t n) noexcept |
| nlib_wcsncpy() をラップします。
|
|
template<class T , size_t N> |
errno_t | StrNcpy (T(&dest)[N], const T *src, size_t n) noexcept |
| 上記関数のテンプレートオーバーロードです。 [詳解]
|
|
template<class T , size_t N> |
errno_t | StrCat (T(&dest)[N], const T *src) noexcept |
| 上記関数のテンプレートオーバーロードです。 [詳解]
|
|
template<class T , size_t N> |
errno_t | StrNcat (T(&dest)[N], const T *src, size_t n) noexcept |
| 上記関数のテンプレートオーバーロードです。 [詳解]
|
|
int | VsnPrintfFallback (char *buf, size_t size, const char *fmt, va_list args) noexcept |
| VsnPrintf のフォールバックです。 [詳解]
|
|
int | VsnPrintfFallback (wchar_t *buf, size_t size, const wchar_t *fmt, va_list args) noexcept |
| wchar_t の文字列を引数にとるバージョンです。
|
|
int | VsnPrintfFallback (nlib_utf16_t *buf, size_t size, const nlib_utf16_t *fmt, va_list args) noexcept |
| nlib_utf16_t(char16_t) の文字列を引数にとるバージョンです。
|
|
int | VsnPrintfFallback (nlib_utf32_t *buf, size_t size, const nlib_utf32_t *fmt, va_list args) noexcept |
| nlib_utf32_t(char32_t) の文字列を引数にとるバージョンです。
|
|
int | VsnPrintf (char *buf, size_t size, const char *fmt, va_list args) noexcept |
| vsnprintf() を実行します。 [詳解]
|
|
int | VsnPrintf (wchar_t *buf, size_t size, const wchar_t *fmt, va_list args) noexcept |
| vsnprintf を実行します。 [詳解]
|
|
int | VsnPrintf (nlib_utf16_t *buf, size_t size, const nlib_utf16_t *fmt, va_list args) noexcept |
| ワイド文字が2バイトの場合は、wchar_t 用のVsnPrintf() を利用し、4バイトの場合はVsnPrintfFallback() を利用します。
|
|
int | VsnPrintf (nlib_utf32_t *buf, size_t size, const nlib_utf32_t *fmt, va_list args) noexcept |
| ワイド文字が4バイトの場合は、wchar_t 用のVsnPrintf() を利用し、2バイトの場合はVsnPrintfFallback() を利用します。
|
|
template<size_t N, class CH > |
int | VsnPrintf (CH(&buf)[N], const CH *fmt, va_list args) noexcept |
| 上記関数のテンプレートオーバーロードです。
|
|
template<class CH > |
int | SnPrintf (CH *buf, size_t size, const CH *fmt,...) noexcept |
| 内部でVsnPrintf()を実行します。
|
|
template<size_t N, class CH > |
int | SnPrintf (CH(&buf)[N], const CH *fmt,...) noexcept |
| 上記関数のテンプレートオーバーロードです。
|
|
errno_t | GetNintendoTime (int64_t *t) noexcept |
| 2000/01/01を起点とした経過時間をミリ秒単位で返します。 [詳解]
|
|
uint64_t | GetTickTime () noexcept |
| システムを起動した後の経過時間をミリ秒単位で返します。 [詳解]
|
|
bool | operator== (const TimeValue &lhs, const TimeValue &rhs) noexcept |
| 等値比較を行います。
|
|
bool | operator< (const TimeValue &lhs, const TimeValue &rhs) noexcept |
| 左辺が右辺より小さければtrue 、それ以外ならfalse を返します。
|
|
TimeValue | operator+ (const TimeValue &lhs, const TimeValue &rhs) noexcept |
| 加算します。
|
|
TimeValue | operator- (const TimeValue &lhs, const TimeValue &rhs) noexcept |
| 減算します。
|
|
bool | operator== (const TimeSpan &lhs, const TimeSpan &rhs) noexcept |
| 等値比較を行います。
|
|
bool | operator< (const TimeSpan &lhs, const TimeSpan &rhs) noexcept |
| 左辺が右辺より小さければtrue 、それ以外ならfalse を返します。
|
|
TimeSpan | operator+ (const TimeSpan &lhs, const TimeSpan &rhs) noexcept |
| 加算します。
|
|
TimeSpan | operator- (const TimeSpan &lhs, const TimeSpan &rhs) noexcept |
| 減算します。
|
|
TimeSpan | operator* (int i, const TimeSpan &rhs) noexcept |
| rhs を i 倍します。
|
|
TimeSpan | operator* (double d, const TimeSpan &rhs) noexcept |
| rhs を d 倍します。
|
|
TimeSpan | operator* (const TimeSpan &lhs, int i) noexcept |
| rhs を i 倍します。
|
|
TimeSpan | operator* (const TimeSpan &lhs, double d) noexcept |
| rhs を d 倍します。
|
|
bool | operator== (const DateTime &lhs, const DateTime &rhs) noexcept |
| lhs とrhs が同一時刻ならばtrue を返します。
|
|
bool | operator< (const DateTime &lhs, const DateTime &rhs) noexcept |
| lhs がrhs より過去の時刻ならtrue を返します。
|
|
DateTime | operator+ (const DateTime &lhs, const TimeSpan &rhs) noexcept |
| lhs から rhs だけ未来の時刻を返します。
|
|
DateTime | operator- (const DateTime &lhs, const TimeSpan &rhs) noexcept |
| lhs から rhs だけ過去の時刻を返します。
|
|
TimeSpan | operator- (const DateTime &lhs, const DateTime &rhs) noexcept |
| 時刻rhs から時刻lhs までの時間を返します。
|
|
template<class T > |
errno_t | LockFreeInit (T **ptr) noexcept |
| スレッドセーフにオブジェクトの構築を行います。 [詳解]
|
|
bool | opeq (const z &lhs, const z &rhs) |
| 等値比較を行います。
|
|
bool | opne (const z &lhs, const z &rhs) |
| 非等値比較を行います。
|
|
bool | oplt (const z &lhs, const z &rhs) |
| 左辺が右辺より小さければtrue 、それ以外ならfalse を返します。
|
|
bool | opgt (const z &lhs, const z &rhs) |
| 右辺が左辺より小さければtrue 、それ以外ならfalse を返します。
|
|
bool | ople (const z &lhs, const z &rhs) |
| 左辺が右辺より小さいか等しければtrue 、それ以外ならfalse を返します。
|
|
bool | opge (const z &lhs, const z &rhs) |
| 右辺が左辺より小さいか等しければtrue 、それ以外ならfalse を返します。
|
|
template<class T , class AL1 , class AL2 > |
bool | operator== (const Nlist< T, AL1 > &lhs, const Nlist< T, AL2 > &rhs) noexcept |
| 2つのリストが等価かどうか調べます。
|
|
template<class T , class AL1 , class AL2 > |
bool | operator!= (const Nlist< T, AL1 > &lhs, const Nlist< T, AL2 > &rhs) noexcept |
| 2つのリストが等価かどうか調べます。
|
|
template<class T , class AL1 , class AL2 > |
bool | operator< (const Nlist< T, AL1 > &lhs, const Nlist< T, AL2 > &rhs) noexcept |
| 2つのリストを辞書順で比較します。
|
|
template<class T , class AL1 , class AL2 > |
bool | operator> (const Nlist< T, AL1 > &lhs, const Nlist< T, AL2 > &rhs) noexcept |
| 2つのリストを辞書順で比較します。
|
|
template<class T , class AL1 , class AL2 > |
bool | operator<= (const Nlist< T, AL1 > &lhs, const Nlist< T, AL2 > &rhs) noexcept |
| 2つのリストを辞書順で比較します。
|
|
template<class T , class AL1 , class AL2 > |
bool | operator>= (const Nlist< T, AL1 > &lhs, const Nlist< T, AL2 > &rhs) noexcept |
| 2つのリストを辞書順で比較します。
|
|
bool | operator== (const StringView &lhs, const StringView &rhs) noexcept |
| 文字列が一致するかどうか比較します。
|
|
bool | operator< (const StringView &lhs, const StringView &rhs) noexcept |
| 文字列を辞書順で比較します。
|
|
bool | StartsWith (const StringView &str, const StringView &prefix) noexcept |
| prefix がstr のプレフィックスである場合true を返します。
|
|
bool | StartsWith (const StringView &str, char c) noexcept |
| c がstr のプレフィックスである場合true を返します。
|
|
bool | StartsWith (const StringView &str, const char *prefix) noexcept |
| prefix がstr のプレフィックスである場合true を返します。
|
|
bool | EndsWith (const StringView &str, const StringView &suffix) noexcept |
| suffix がstr のサフィックスである場合true を返します。
|
|
bool | EndsWith (const StringView &str, char c) noexcept |
| c がstr のサフィックスである場合true を返します。
|
|
bool | EndsWith (const StringView &str, const char *suffix) noexcept |
| suffix がstr のサフィックスである場合true を返します。
|
|
bool | ToCstring (char *buf, size_t buf_size, const StringView &str) noexcept |
| ヌル終端文字列として文字列をコピーします。コピーできた場合はtrue を返します。
|
|
template<size_t N> |
bool | ToCstring (char(&buf)[N], const StringView &str) noexcept |
| 上記関数のテンプレートオーバーロードです。
|
|
UniquePtr< char[]> | ToCstring (const StringView &str) noexcept |
| メモリを割り当ててヌル終端文字列として文字列をコピーします。コピーできた場合はtrue を返します。
|
|
std::pair< errno_t, size_t > | ToInteger (int8_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_int8_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (int16_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_int16_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (int32_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_int32_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (int64_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_int64_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (uint8_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_uint8_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (uint16_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_uint16_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (uint32_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_uint32_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToInteger (uint64_t *v, const StringView &str, int base) noexcept |
| 内部でnlib_uint64_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToFloat (float *v, const StringView &str) noexcept |
| 内部でnlib_float_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
std::pair< errno_t, size_t > | ToDouble (double *v, const StringView &str) noexcept |
| 内部でnlib_double_from_chars() を呼び出して、文字列を数値に変換します。戻り値はエラー値と読み込んだ文字数のペアです。
|
|
template<class T > |
std::pair< errno_t, size_t > | ToInteger (T *v, const StringView &str) noexcept |
| ToInteger(v, str, 10) を返します。つまり10進数として文字列を数値に変換します。
|
|
bool | TrimLeft (StringView &str) noexcept |
| 文字列の先頭の空白を切り詰めます。 [詳解]
|
|
bool | TrimRight (StringView &str) noexcept |
| 文字列の末尾の空白を切り詰めます。 [詳解]
|
|
void | Trim (StringView &str) noexcept |
| 文字列の先頭と末尾の空白を切り詰めます。
|
|
StringView | GetLine (StringView &str) noexcept |
| 先頭から行末までの文字列を取得します。自身のオブジェクト(str )は次の行の行頭に移動します。 [詳解]
|
|
bool | Proceed (StringView &str, const StringView &prefix) noexcept |
| str がprefix で始まっていればその文字列長だけ進めます。 [詳解]
|
|
bool | Proceed (StringView &str, const char *prefix) noexcept |
| str がprefix で始まっていればその文字列長だけ進めます。 [詳解]
|
|
bool | Proceed (StringView &str, char c) noexcept |
| str がc で始まっていればその文字列長だけ進めます。 [詳解]
|
|
StringView | GetName (StringView &str) noexcept |
| 一般に変数名とされるような文字列を取得します。自身のオブジェクト(str )は取得した文字列の次に移動します。 [詳解]
|
|