函数逻辑报告 |
Source Code:lib\vsprintf.c |
Create Date:2022-07-27 07:09:41 |
| Last Modify:2022-05-21 09:47:42 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Helper function to decode printf style format
函数原型:static __attribute__((__noinline__)) int format_decode(const char *fmt, struct printf_spec *spec)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const char * | fmt | |
| struct printf_spec * | spec |
| 2288 | 如果 format_type enum 恒等于FORMAT_TYPE_WIDTH则 |
| 2289 | 如果 width of output field 小于0则 |
| 2291 | flags to number() 或等于left justified |
| 2293 | format_type enum 等于 Just a string part |
| 2294 | 转到:precision |
| 2298 | 如果 format_type enum 恒等于FORMAT_TYPE_PRECISION则 |
| 2299 | 如果 # of digits/chars 小于0则 # of digits/chars 等于0 |
| 2302 | format_type enum 等于 Just a string part |
| 2303 | 转到:qualifier |
| 2307 | format_type enum 等于 Just a string part |
| 2319 | flags to number() 等于0 |
| 2321 | 当1循环 |
| 2322 | bool found = true |
| 2324 | fmt先自加 |
| 2327 | flags to number() 或等于left justified |
| 2327 | 退出 |
| 2328 | flags to number() 或等于show plus |
| 2328 | 退出 |
| 2329 | flags to number() 或等于space if plus |
| 2329 | 退出 |
| 2330 | 退出 |
| 2331 | 退出 |
| 2332 | 默认 |
| 2332 | found = false |
| 2340 | width of output field 等于负1 |
| 2344 | 否则如果fmt恒等于'*'则 |
| 2350 | precision : |
| 2352 | # of digits/chars 等于负1 |
| 2353 | 如果fmt恒等于'.'则 |
| 2354 | fmt先自加 |
| 2357 | 如果 # of digits/chars 小于0则 # of digits/chars 等于0 |
| 2359 | 否则如果fmt恒等于'*'则 |
| 2366 | qualifier : |
| 2368 | qualifier等于0 |
| 2369 | 如果fmt恒等于'h'或Fast implementation of tolower() for internal usage. Do not use in your* code.恒等于'l'或fmt恒等于'z'或fmt恒等于't'则 |
| 2372 | 如果此条件成立可能性小(为编译器优化)(qualifier == * fmt)则 |
| 2384 | number base, 8, 10 or 16 only 等于10 |
| 2387 | format_type enum 等于FORMAT_TYPE_CHAR |
| 2391 | format_type enum 等于FORMAT_TYPE_STR |
| 2395 | format_type enum 等于FORMAT_TYPE_PTR |
| 2404 | number base, 8, 10 or 16 only 等于8 |
| 2405 | 退出 |
| 2412 | number base, 8, 10 or 16 only 等于16 |
| 2413 | 退出 |
| 2419 | 退出 |
| 2429 | 默认 |
| 2435 | 如果qualifier恒等于'L'则 format_type enum 等于FORMAT_TYPE_LONG_LONG |
| 2437 | 否则如果qualifier恒等于'l'则 |
| 2440 | 否则如果qualifier恒等于'z'则 |
| 2442 | 否则如果qualifier恒等于't'则 |
| 2444 | 否则如果qualifier恒等于'H'则 |
| 2447 | 否则如果qualifier恒等于'h'则 |
| 2450 | 否则 |
| 名称 | 描述 |
|---|---|
| vsnprintf | vsnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* This function generally |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |