Function report | 
Source Code:security\tomoyo\util.c | 
Create Date:2022-07-28 19:48:06 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:moyo_file_matches_pattern2 - Pattern matching without '/' character and "\-" pattern.*@filename: The start of string to check.*@filename_end: The end of string to check.*@pattern: The start of pattern to compare.
Proto:static bool tomoyo_file_matches_pattern2(const char *filename, const char *filename_end, const char *pattern, const char *pattern_end)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char * | filename | |
| const char * | filename_end | |
| const char * | pattern | |
| const char * | pattern_end | 
| 681 | When filename < filename_end && pattern < pattern_end cycle | 
| 686 | If pattern != '\\' Then | 
| 692 | pattern++ | 
| 694 | Case pattern == '?' | 
| 695 | If c == '/' Then | 
| 696 | Return false | 
| 697 | Else if c == '\\' Then | 
| 702 | Else Return false | 
| 705 | Break | 
| 706 | Case pattern == '\\' | 
| 712 | Case pattern == '+' | 
| 716 | Case pattern == 'x' | 
| 720 | Case pattern == 'a' | 
| 721 | If Not moyo_alphabet_char - Check whether the character is an alphabet.*@c: The character to check.* Returns true if @c is an alphabet character, false otherwise. Then Return false | 
| 723 | Break | 
| 724 | Case pattern == '0' | 
| 725 | Case pattern == '1' | 
| 726 | Case pattern == '2' | 
| 727 | Case pattern == '3' | 
| 734 | Return false | 
| 735 | Case pattern == '*' | 
| 736 | Case pattern == '@' | 
| 737 | When i <= filename_end - filename cycle | 
| 745 | If c != '\\' Then Continue | 
| 751 | Else Break | 
| 754 | Return false | 
| 755 | Default | 
| 756 | j = 0 | 
| 758 | If c == '$' Then | 
| 761 | Else if c == 'X' Then | 
| 764 | Else if c == 'A' Then | 
| 765 | When moyo_alphabet_char - Check whether the character is an alphabet.*@c: The character to check.* Returns true if @c is an alphabet character, false otherwise. cycle | 
| 766 | j++ | 
| 774 | Return false | 
| 776 | filename++ | 
| 777 | pattern++ | 
| 781 | pattern += 2 | 
| 782 | Return filename == filename_end && pattern == pattern_end | 
| Name | Describe | 
|---|---|
| tomoyo_file_matches_pattern2 | moyo_file_matches_pattern2 - Pattern matching without '/' character and "\-" pattern.*@filename: The start of string to check.*@filename_end: The end of string to check.*@pattern: The start of pattern to compare. | 
| tomoyo_file_matches_pattern | moyo_file_matches_pattern - Pattern matching without '/' character.*@filename: The start of string to check.*@filename_end: The end of string to check.*@pattern: The start of pattern to compare.*@pattern_end: The end of pattern to compare. | 
| 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  |