Function report |
Source Code:lib\string_helpers.c |
Create Date:2022-07-28 06:25:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:string_escape_mem - quote characters in the given memory buffer*@src: source buffer (unescaped)*@isz: source buffer size*@dst: destination buffer (escaped)*@osz: destination buffer size*@flags: combination of the flags*@only: NULL-terminated string
Proto:int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, unsigned int flags, const char *only)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | src | |
| size_t | isz | |
| char * | dst | |
| size_t | osz | |
| unsigned int | flags | |
| const char * | only |
| 522 | If flags & ESCAPE_SPACE && escape_space(c, & p, end) Then Continue |
| 525 | If flags & ESCAPE_SPECIAL && escape_special(c, & p, end) Then Continue |
| 528 | If flags & ESCAPE_NULL && escape_null(c, & p, end) Then Continue |
| 532 | If flags & ESCAPE_OCTAL && escape_octal(c, & p, end) Then Continue |
| 535 | If flags & ESCAPE_HEX && escape_hex(c, & p, end) Then Continue |
| 539 | escape_passthrough(c, & p, end) |
| Name | Describe |
|---|---|
| kstrdup_quotable | Return an allocated string that has been escaped of special characters* and double quotes, making it safe to log in quotes. |
| test_string_escape_overflow | |
| test_string_escape |
| 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 |