| Function report | 
| Source Code: kernel\debug\kdb\kdb_main.c | Create Date:2022-07-28 11:41:07 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:The "str" argument may point to something like | grep xyz
Proto:static void parse_grep(const char *str)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | str | 
| 828 | If cp != '|' Then Return | 
| 830 | cp++ | 
| 831 | When Note: isspace() must return false for %NUL-terminator ( * cp) cycle | 
| 832 | cp++ | 
| 834 | kdb_printf("invalid 'pipe', see grephelp\n") | 
| 835 | Return | 
| 837 | cp += 5 | 
| 838 | When Note: isspace() must return false for %NUL-terminator ( * cp) cycle | 
| 839 | cp++ | 
| 840 | cp2 = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 844 | If len == 0 Then | 
| 845 | kdb_printf("invalid 'pipe', see grephelp\n") | 
| 846 | Return | 
| 849 | If cp == '"' Then | 
| 852 | cp++ | 
| 853 | cp2 = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 854 | If Not cp2 Then | 
| 855 | kdb_printf("invalid quoted string, see grephelp\n") | 
| 856 | Return | 
| 858 | cp2 = '\0' | 
| 860 | kdb_grep_leading = 0 | 
| 861 | If cp == '^' Then | 
| 862 | kdb_grep_leading = 1 | 
| 863 | cp++ | 
| 866 | kdb_grep_trailing = 0 | 
| 868 | kdb_grep_trailing = 1 | 
| 872 | If Not len Then Return | 
| 874 | If len >= KDB_GREP_STRLEN Then | 
| 875 | kdb_printf("search string too long\n") | 
| 876 | Return | 
| 878 | strcpy(kdb_grep_string, cp) | 
| 879 | kdb_grepping_flag++ | 
| 880 | Return | 
| Name | Describe | 
|---|---|
| kdb_parse | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |