|
static mstr_result_t | process_replacement_field (char const **ppfmt, MStrFmtParseResult *parser_result) |
| 解析replacement field
|
|
static mstr_result_t | load_value (MStrFmtFormatArgument *arg, MStrFmtArgsContext *ctx, usize_t arg_id, MStrFmtArgType spec_type) |
| 从可变参数里面载入值
|
|
static mstr_result_t | format_value (MString *res_str, const MStrFmtParseResult *parser_result, const MStrFmtFormatArgument *arg) |
| 格式化值
|
|
static mstr_result_t | format_array (MString *res_str, const MStrFmtParseResult *parser_result, const MStrFmtFormatArgument *arg, const MStrFmtFormatArgument *sz_arg) |
| 格式化值
|
|
static iptr_t | array_get_item (const MStrFmtFormatArgument *array, usize_t index) |
| 按照数组下标进行访问
|
|
static mstr_result_t | copy_to_output (MString *out_str, const MStrFmtFormatDescript *fmt_spec, const MString *src_str) |
| 把数据复制到输出
|
|
static mstr_result_t | convert (MString *str, const MStrFmtParseResult *parser_result, const MStrFmtFormatArgument *arg) |
| 转换单个的值到buffer
|
|
static mstr_result_t | convert_string (MString *str, iptr_t value, const MStrFmtFormatSpec *spec) |
| 对字符串格式化
|
|
static mstr_result_t | convert_time (MString *str, iptr_t value, const MStrFmtFormatSpec *spec) |
| 对日期和时间值格式化
|
|
static mstr_result_t | convert_int (MString *str, int32_t value, MStrFmtSignDisplay sign, MStrFmtFormatType ftyp) |
| 对有符号整数进行格式化
|
|
static mstr_result_t | convert_uint (MString *str, uint32_t value, MStrFmtFormatType ftyp) |
| 对无符号整数进行格式化
|
|
static mstr_result_t | convert_quat (MString *str, int32_t value, uint32_t qbits, MStrFmtSignDisplay sign) |
| 对有符号量化值进行格式化
|
|
static mstr_result_t | convert_uquat (MString *str, uint32_t value, uint32_t qbits) |
| 对无符号量化值进行格式化
|
|
static mstr_result_t | fmt_type_as_integer_index (MStrFmtIntIndex *index, MStrFmtFormatType typ) |
| 把 MStrFmtFormatType 转为 整数的index
|
|
| mstr_format (MString *res_str, const char *fmt, usize_t fmt_place,...) |
| 格式化字符串
|
|
| mstr_vformat (const char *fmt, MString *res_str, usize_t fmt_place, va_list *ap_ptr) |
| 格式化字符串
|
|
| mstr_context_format (MString *res_str, const char *fmt, MStrFmtArgsContext *ctx) |
| 按照上下文进行格式化
|
|