📄 stdstring.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <meta name="generator" content="HTML Tidy for Linux/x86 (vers 1st October 2002), see www.w3.org"> <title>Standard C String & Character</title> </head> <body bgcolor="#ffffff"> <table width="100%" bgcolor="#eeeeff"> <tr> <td><a href="index.html">cppreference.com</a> -> Standard C String & Character</td> </tr> </table> <h3>Standard C string and character</h3> <table> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#atof">atof()</a></td> <td>converts a string to a double</td> </tr> <tr> <td><a href="stdstring_details.html#atoi">atoi()</a></td> <td>converts a string to an integer</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#atol">atol()</a></td> <td>converts a string to a long</td> </tr> <tr> <td><a href="stdstring_details.html#isalnum">isalnum()</a></td> <td>true if alphanumeric</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#isalpha">isalpha()</a></td> <td>true if alphabetic</td> </tr> <tr> <td><a href="stdstring_details.html#iscntrl">iscntrl()</a></td> <td>true if control character</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#isdigit">isdigit()</a></td> <td>true if digit</td> </tr> <tr> <td><a href="stdstring_details.html#isgraph">isgraph()</a></td> <td>true if a graphical character</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#islower">islower()</a></td> <td>true if lowercase</td> </tr> <tr> <td><a href="stdstring_details.html#isprint">isprint()</a></td> <td>true if a printing character</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#ispunct">ispunct()</a></td> <td>true if punctuation</td> </tr> <tr> <td><a href="stdstring_details.html#isspace">isspace()</a></td> <td>true if space</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#isupper">isupper()</a></td> <td>true if uppercase character</td> </tr> <tr> <td><a href="stdstring_details.html#isxdigit">isxdigit()</a></td> <td>true if a hexidecimal character</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#memchr">memchr()</a></td> <td>searches an array for the first occurance of a character</td> </tr> <tr> <td><a href="stdstring_details.html#memcmp">memcmp()</a></td> <td>compares two buffers</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#memcpy">memcpy()</a></td> <td>copies one buffer to another</td> </tr> <tr> <td><a href="stdstring_details.html#memmove">memmove()</a></td> <td>moves one buffer to another</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#memset">memset()</a></td> <td>fills a buffer with a character</td> </tr> <tr> <td><a href="stdstring_details.html#strcat">strcat()</a></td> <td>concatenates two strings</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strchr">strchr()</a></td> <td>finds the first occurance of a character in a string</td> </tr> <tr> <td><a href="stdstring_details.html#strcmp">strcmp()</a></td> <td>compares two strings</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strcoll">strcoll()</a></td> <td>compares two strings in accordance to the current locale</td> </tr> <tr> <td><a href="stdstring_details.html#strcpy">strcpy()</a></td> <td>copies one string to another</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strcspn">strcspn()</a></td> <td>searches one string for any characters in another</td> </tr> <tr> <td><a href="stdstring_details.html#strerror">strerror()</a></td> <td>returns a text version of a given error code</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strlen">strlen()</a></td> <td>returns the length of a given string</td> </tr> <tr> <td><a href="stdstring_details.html#strncat">strncat()</a></td> <td>concatenates a certain amount of characters of two strings</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strncmp">strncmp()</a></td> <td>compares a certain amount of characters of two strings</td> </tr> <tr> <td><a href="stdstring_details.html#strncpy">strncpy()</a></td> <td>copies a certain amount of characters from one string to another</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strpbrk">strpbrk()</a></td> <td>finds the first location of any character in one string, in another string</td> </tr> <tr> <td><a href="stdstring_details.html#strrchr">strrchr()</a></td> <td>finds the last occurance of a character in a string</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strspn">strspn()</a></td> <td>returns the length of a substring of characters of a string</td> </tr> <tr> <td><a href="stdstring_details.html#strstr">strstr()</a></td> <td>finds the first occurance of a substring of characters</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strtod">strtod()</a></td> <td>converts a string to a double</td> </tr> <tr> <td><a href="stdstring_details.html#strtok">strtok()</a></td> <td>finds the next token in a string</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strtol">strtol()</a></td> <td>converts a string to a long</td> </tr> <tr> <td><a href="stdstring_details.html#strtoul">strtoul()</a></td> <td>converts a string to an unsigned long</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#strxfrm">strxfrm()</a></td> <td>converts a substring so that it can be used by string comparison functions</td> </tr> <tr> <td><a href="stdstring_details.html#tolower">tolower()</a></td> <td>converts a character to lowercase</td> </tr> <tr bgcolor="#eeeeff"> <td><a href="stdstring_details.html#toupper">toupper()</a></td> <td>converts a character to uppercase</td> </tr> </table> </body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -