Standard library header <cstring>
From cppreference.net
このヘッダーは元々C標準ライブラリに <string.h> として存在していました。
このヘッダーは Cスタイルのヌル終端バイト文字列 用です。
マクロ |
||
|
実装定義のヌルポインタ定数
(マクロ定数) |
||
型 |
||
|
sizeof演算子によって返される符号なし整数型
sizeof
(typedef) |
||
関数 |
||
文字列操作 |
||
|
文字列を別の文字列にコピーする
(関数) |
||
|
ある文字列から別の文字列へ、指定された文字数をコピーする
(関数) |
||
|
二つの文字列を連結する
(関数) |
||
|
2つの文字列の特定の量の文字を連結する
(関数) |
||
文字列を変換し、
strcmp
が
strcoll
と同じ結果を生成するようにする
(関数) |
||
文字列検査 |
||
|
指定された文字列の長さを返す
(関数) |
||
|
2つの文字列を比較する
(関数) |
||
|
2つの文字列から指定された数の文字を比較する
(関数) |
||
|
現在のロケールに従って2つの文字列を比較する
(関数) |
||
|
文字の最初の出現位置を検索
(関数) |
||
|
文字の最後の出現を検索する
(関数) |
||
|
別のバイト文字列内に存在する文字のみで構成される
最大の先頭セグメントの長さを返す (関数) |
||
|
別のバイト文字列に含まれない文字のみで構成される
最大の先頭セグメントの長さを返す (関数) |
||
|
区切り文字セット内の任意の文字が最初に現れる位置を検索する
(関数) |
||
|
文字列中の部分文字列の最初の出現を検索する
(関数) |
||
|
バイト文字列内の次のトークンを検索する
(関数) |
||
文字配列操作 |
||
|
配列内で最初に現れる文字を検索します
(関数) |
||
|
二つのバッファを比較する
(関数) |
||
|
バッファを文字で埋める
(関数) |
||
|
バッファを別のバッファにコピーする
(関数) |
||
|
バッファを別のバッファに移動する
(関数) |
||
その他 |
||
|
指定されたエラーコードのテキスト版を返す
(関数) |
||
注記
- NULL は以下のヘッダーでも定義されています:
- std::size_t は以下のヘッダーでも定義されています:
概要
namespace std { using size_t = /* 説明を参照 */; // フリースタンディング void* memcpy(void* s1, const void* s2, size_t n); // フリースタンディング void* memmove(void* s1, const void* s2, size_t n); // フリースタンディング char* strcpy(char* s1, const char* s2); // フリースタンディング char* strncpy(char* s1, const char* s2, size_t n); // フリースタンディング char* strcat(char* s1, const char* s2); // フリースタンディング char* strncat(char* s1, const char* s2, size_t n); // フリースタンディング int memcmp(const void* s1, const void* s2, size_t n); // フリースタンディング int strcmp(const char* s1, const char* s2); // フリースタンディング int strcoll(const char* s1, const char* s2); int strncmp(const char* s1, const char* s2, size_t n); // フリースタンディング size_t strxfrm(char* s1, const char* s2, size_t n); const void* memchr(const void* s, int c, size_t n); // フリースタンディング void* memchr(void* s, int c, size_t n); // フリースタンディング const char* strchr(const char* s, int c); // フリースタンディング char* strchr(char* s, int c); // フリースタンディング size_t strcspn(const char* s1, const char* s2); // フリースタンディング const char* strpbrk(const char* s1, const char* s2); // フリースタンディング char* strpbrk(char* s1, const char* s2); // フリースタンディング const char* strrchr(const char* s, int c); // フリースタンディング char* strrchr(char* s, int c); // フリースタンディング size_t strspn(const char* s1, const char* s2); // フリースタンディング const char* strstr(const char* s1, const char* s2); // フリースタンディング char* strstr(char* s1, const char* s2); // フリースタンディング char* strtok(char* s1, const char* s2); // フリースタンディング void* memset(void* s, int c, size_t n); // フリースタンディング char* strerror(int errnum); size_t strlen(const char* s); // フリースタンディング } #define NULL /* 説明を参照 */ // フリースタンディング