Rizin
unix-like reverse engineering framework and cli tools
|
#include "rz_str.h"
Go to the source code of this file.
Classes | |
struct | RUtfBlock |
Typedefs | |
typedef ut32 | RzRune |
Functions | |
RZ_API int | rz_utf8_encode (ut8 *ptr, const RzRune ch) |
RZ_API int | rz_utf8_decode (const ut8 *ptr, int ptrlen, RzRune *ch) |
RZ_API int | rz_mutf8_decode (const ut8 *ptr, int ptrlen, RzRune *ch) |
RZ_API int | rz_utf8_encode_str (const RzRune *str, ut8 *dst, const int dst_length) |
RZ_API int | rz_utf8_size (const ut8 *ptr) |
RZ_API int | rz_utf8_strlen (const ut8 *str) |
RZ_API bool | rz_rune_is_printable (const RzRune c) |
Returns true when the RzRune is a printable symbol. More... | |
RZ_API const char * | rz_utf_block_name (int idx) |
RZ_API int | rz_utf_block_idx (RzRune ch) |
RZ_API int * | rz_utf_block_list (const ut8 *str, int len, int **freq_list) |
RZ_API RzStrEnc | rz_utf_bom_encoding (const ut8 *ptr, int ptrlen) |
Definition at line 524 of file utf8.c.
References rz_utf8_decode().
Referenced by escape_utf8_for_json().
Returns true when the RzRune is a printable symbol.
c | RzRune value to test |
Definition at line 606 of file utf8.c.
References c, from, hi(), nonprintable_ranges, to, and UTF_NONPRINTABLE_RANGES_COUNT.
Referenced by escape_utf8_for_json(), process_one_string(), rz_scan_strings_raw(), and rz_str_stringify_raw_buffer().
Definition at line 492 of file utf8.c.
Referenced by calculate_utf8_string_info(), can_be_utf16_le(), can_be_utf32_le(), ds_esc_str(), escape_utf8_for_json(), process_one_string(), rz_mutf8_decode(), rz_scan_strings_raw(), rz_search_keyword_new_wide(), rz_str_escape_utf(), rz_str_is_printable(), rz_str_is_printable_incl_newlines(), rz_str_is_printable_limited(), rz_str_is_utf8(), rz_str_stringify_raw_buffer(), rz_utf_block_list(), and sanitize_cab_filename().
Definition at line 535 of file utf8.c.
References ut8.
Referenced by process_one_string(), rz_str_escape_utf(), rz_str_stringify_raw_buffer(), rz_utf8_encode_str(), sanitize_cab_filename(), and unescape_string().
Definition at line 559 of file utf8.c.
References dst, i, pos, rz_utf8_encode(), and cmd_descs_generate::str.
Referenced by rz_core_analysis_hasrefs_to_depth().
Definition at line 588 of file utf8.c.
References i, len, and cmd_descs_generate::str.
Referenced by ds_print_relocs().
Definition at line 733 of file utf8.c.
References from, hi(), to, utf_blocks, and UTF_BLOCKS_COUNT.
Referenced by rz_utf_block_list().
Definition at line 754 of file utf8.c.
References free(), len, list(), NULL, RZ_NEWS0, rz_utf8_decode(), rz_utf_block_idx(), cmd_descs_generate::str, and UTF_BLOCKS_COUNT.
Referenced by reduce_false_positives(), and strings_print().
Definition at line 484 of file utf8.c.
References setup::idx, RUtfBlock::name, NULL, utf_blocks, and UTF_LAST_BLOCK.
Referenced by strings_print().
Definition at line 809 of file utf8.c.
References RZ_STRING_ENC_GUESS, RZ_STRING_ENC_UTF16BE, RZ_STRING_ENC_UTF16LE, RZ_STRING_ENC_UTF32BE, RZ_STRING_ENC_UTF32LE, and RZ_STRING_ENC_UTF8.
Referenced by ds_esc_str(), ds_print_ptr(), and rz_str_guess_encoding_from_buffer().