C 标准库 - string.h This header file defines several functions to manipulate C strings and arrays. string .h 头文件定义了一个变量类型.一个宏和各种操作字符数组的函数. 库变量 size_t Unsigned integral type (type ) 这是无符号整数类型,它是 sizeof 关键字的结果. 库宏 NULL Null pointer 这个宏是一个空指针常量的值. 库函数 void…
官方文档:http://robotframework.org/robotframework/latest/libraries/String.html Introduction A test library for string manipulation and verification.String is Robot Framework's standard library for manipulating strings Following keywords from BuiltIn libr…
memmove Move block of memory Copies the values of num bytes from the location pointed by source to the memory block pointed by destination. Copying takes place as if an intermediate buffer were used, allowing the destination and source to overlap. Th…
memcpy Copy block of memory Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination. The underlying type of the objects pointed to by both the source and destination pointers are ir…
memcmp Compare two blocks of memory. Compares the first num bytes of the block of memory pointed by ptr1 to the first num bytes pointed by ptr2, returning zero if they all match or a value different from zero representing which is greater if they do…
memchr Locate character in block of memory,Searches within the first num bytes of the block of memory pointed by ptr for the first occurrence of ch (interpreted as an unsigned char), and returns a pointer to it. 在参数 ptr 所指向的字符串的前 count 个字节中搜索第一次出现字符…
strlen Returns the length of the C string str. The length of a C string is determined by the terminating null-character: A C string is as long as the number of characters between the beginning of the string and the terminating null character (without…
strpbrk Locate characters in string,Returns a pointer to the first occurrence in str1 of any of the characters that are part of str2, or a null pointer if there are no matches. The search does not include the terminating null-characters of either str…
strrchr Locate last occurrence of character in string, Returns a pointer to the last occurrence of character in the C string str. The terminating null-character is considered part of the C string. Therefore, it can also be located to retrieve a point…
strspn Returns the length of the initial portion of str1 which consists only of characters that are part of str2. The search does not include the terminating null-characters of either strings, but ends there. 检索字符串 dest 中第一个不在字符串 src 中出现的字符下标.返回 dest…
strstr Returns a pointer to the first occurrence of str2 in str1, or a null pointer if str2 is not part of str1. 查找 substr 所指的空终止字节字符串在 str 所指的空终止字节字符串中的首次出现.不比较空终止字符. 若 str 或 substr 不是指向空终止字节字符串的指针,则行为未定义. char *strstr(const char *haystack, const ch…
strcat Appends a copy of the source string to the destination string. The terminating null character in destination is overwritten by the first character of source, and a null-character is included at the end of the new string formed by the concatena…