更新翻译

Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
jlspcdd1227dd 2023-03-27 09:22:53 +00:00 committed by Gitee
parent e74ad24497
commit 6693c7f7b5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 33 additions and 33 deletions

View File

@ -2815,82 +2815,82 @@ $ sudo apt-get install libkysdk-utils libkysdk-utils-dev
> 删除空格和制表符
> remove spaces and tabs
| submodule | Programming language | statement | describe |
|----------|------|---------------------------------------------|--------------------------------------|
| C language string extension | C | static inline void strstripblank(char *str) | 删除给定字符串前后的空格和水平制表符tab注意该操作会修改原字符串 |
| C language string extension | C | static inline void strstripblank(char *str) | Delete spaces and horizontal tabs (tab) before and after the given string, note that this operation will modify the original string |
| | | Parameter Description | Return value description | |
| | | str:需要修改的字符串指针 | 无 |
| | | str:String pointer to modify | 无 |
> 跳过开始的所有空格、制表符、换行符
> Skip all leading spaces, tabs, newlines
| submodule | Programming language | statement | describe |
|----------|------|-------------------------------------------------------|---------------------------------|
| C language string extension | C | static inline const char *strskipspace(const char *p) | 跳过字符串前的所有空格、制表符、换行符;该操作不会修改原字符串 |
| C language string extension | C | static inline const char *strskipspace(const char *p) | Skip all spaces, tabs, and newlines before the string; this operation does not modify the original string |
| | | Parameter Description | Return value description | |
| | | p:指向原字符串的指针 | const char* 指向跳过space后的字符串指针 |
| | | p:pointer to the original string | const char* Pointer to the character string after skipping the space |
> 前缀判断(区分大小写)
> Prefix judgment (case sensitive)
| submodule | Programming language | statement | describe |
|----------|------|----------------------------------------------------------------------|------------------------------|
| C language string extension | C | static inline int strstartswith(const char *str, const char *prefix) | 判断str是否以prefix开头该函数区分大小写 |
| C language string extension | C | static inline int strstartswith(const char *str, const char *prefix) | Determine whether str starts with prefix, this function is case sensitive |
| | | Parameter Description | Return value description |
| | | str原字符串 | int 若str以prefix开头则返回0否则返回1 |
| | | prefix需要匹配的字符串前缀 | |
| | | stroriginal string | int Returns 0 if str begins with prefix; otherwise returns 1 |
| | | prefixstring prefix to match | |
> 前缀判断(不区分大小写)
> Prefix judgment (case insensitive)
| submodule | Programming language | statement | describe |
|----------|------|-----------------------------------------------------------------------------|------------------------------|
| C language string extension | C | static inline int strstartswith_nocase(const char *str, const char *prefix) | 判断str是否以prefix开头不区分大小写 |
| C language string extension | C | static inline int strstartswith_nocase(const char *str, const char *prefix) | Determine whether str starts with prefix; case insensitive |
| | | Parameter Description | Return value description |
| | | str:原字符串 | int 若str以prefix开头则返回0否则返回1 |
| | | prefix:需要匹配的字符串前缀 | |
| | | str:original string | int Returns 0 if str begins with prefix; otherwise returns 1 |
| | | prefix:string prefix to match | |
> 删减字符串前后的指定字符
> Delete the specified characters before and after the string
| submodule | Programming language | statement | describe |
|----------|------|-------------------------------------------------|--------------------------------------------|
| C language string extension | C | static inline void strstrip(char *str, char ch) | 对给定的字符串进行strip操作删减字符串前后的指定字符注意该操作会修改原字符串 |
| C language string extension | C | static inline void strstrip(char *str, char ch) | Perform a strip operation on a given string, and delete the specified characters before and after the string; note that this operation will modify the original string |
| | | Parameter Description | Return value description |
| | | str:需要进行strip的字符串指针 | 无 |
| | | ch:需要删除的字符 | |
| | | str:The pointer to the string that needs to be stripped | 无 |
| | | ch:characters to delete | |
> 跳过开始的所有空格、水平制表符
> Skip all leading spaces, horizontal tabs
| submodule | Programming language | statement | describe |
|----------|------|-------------------------------------------------------|------------------------------------|
| C language string extension | C | static inline const char *strskipblank(const char *p) | 跳过字符串前的所有空格和水平制表符tab该操作不会修改原字符串 |
| C language string extension | C | static inline const char *strskipblank(const char *p) | Skip all spaces and horizontal tabs before the string; this operation does not modify the original string |
| | | Parameter Description | Return value description | |
| | | p:指向原字符串的指针 | const char* 指向跳过space后的字符串指针 |
| | | p: pointer to the original string | const char* Pointer to the character string after skipping the space |
> 删除前后的空格、制表符、换行符
> Delete leading and trailing spaces, tabs, newlines
| submodule | Programming language | statement | describe |
|----------|------|---------------------------------------------|-----------------------------------|
| C language string extension | C | static inline void strstripspace(char *str) | 删除给定字符串前后的空格、制表符、换行符,注意该操作会修改原字符串 |
| C language string extension | C | static inline void strstripspace(char *str) | Delete spaces, tabs, and newlines before and after the given string. Note that this operation will modify the original string |
| | | Parameter Description | Return value description | |
| | | str需要进行strip操作的字符串指针 | 无 |
| | | strA pointer to a string that needs to be stripped | 无 |
## **5.4** Linked list module
@ -2918,7 +2918,7 @@ target_link_libraries(test-insert kydatastruct)
target_link_libraries(test-search kydatastruct)
```
>
> 2调用定时器模块,需要添加头文件
> 2To call the timer module, you need to add a header file
>
```
#include "kysdk/kysdk-base/skip_linklist.h"
@ -2932,22 +2932,22 @@ target_link_libraries(test-search kydatastruct)
| submodule | Programming language | statement | describe |
| linked list | C | extern kysdk_skiplist* kysdk_create_skiplist() | Create skip list |
| | | Parameter Description | Return value description | |
| | | 无 | kysdk_skiplist* 跳表 |
| | | 无 | kysdk_skiplist* jump table |
> 销毁跳表
> destroy jump list
| | | | |
|-----|------|----------------------------------------------------------|-------------------------------------------|
| submodule | Programming language | statement | describe |
| linked list | C | extern void kysdk_destroy_skiplist(kysdk_skiplist *list) | 销毁跳表并回收所有分配的内存注意data.ptr指向的内存若存在不会被释放 |
| linked list | C | extern void kysdk_destroy_skiplist(kysdk_skiplist *list) | Destroy the jump list and reclaim all allocated memory; note that the memory pointed to by data.ptr (if it exists) will not be released |
| | | Parameter Description | Return value description | |
| | | list跳表 | 无 |
| | | listjump table | 无 |
> 删除 key 值对应的节点
> Delete the node corresponding to the key value
| | | | |
@ -2956,7 +2956,7 @@ target_link_libraries(test-search kydatastruct)
| linked list | C | extern int kysdk_skiplist_delete(kysdk_skiplist *list, int key) | Delete the node corresponding to the key value |
| | | Parameter Description | Return value description |
| | | listlinked list to be manipulated | int, Successful deletion returns 0, failure returns -1 |
| | | key | |
| | | keykey | |
@ -2969,8 +2969,8 @@ target_link_libraries(test-search kydatastruct)
| linked list | C | extern int kysdk_skiplist_insert(kysdk_skiplist *list, int key, kysdk_listdata data) | insert node |
| | | Parameter Description | Return value description |
| | | listlinked list to be manipulated | intSuccessful insertion returns 0, failure returns -1 |
| | | key | |
| | | data数据 | |
| | | keykey | |
| | | datadata | |
> Search the content of data according to the given key