Find Shift-JIS encoded strings in a byte stream.
More...
#include <shift_jis.h>
|
| static bool | is_jisx0201_printable (const uint8_t *c) |
| | Determines if a given byte is valid for JIS X 0201 and is printable. More...
|
| |
| static bool | is_jisx0208 (const uint8_t *c_h, const uint8_t *c_l) |
| | Determines if the given bytes make up a valid JIS X 0208 character. More...
|
| |
| static bool | is_jisx0213 (const uint8_t *c_h, const uint8_t *c_l) |
| | Determines if the given bytes make up a valid JIS X 0213 character. More...
|
| |
|
|
std::istream * | instream |
| |
|
size_t | min_len = 10 |
| | Minimum number of characters to match to count as a found string.
|
| |
|
bool | is_big_endian = true |
| | Determines byte order for multibyte characters.
|
| |
|
bool | use_jisx0213 = false |
| | Use the JIS X 0213 character set instead of JIS X 0208.
|
| |
Find Shift-JIS encoded strings in a byte stream.
- Author
- Damian Rogers (damia.nosp@m.n@su.nosp@m.dden-.nosp@m.desu.nosp@m..net)
- Version
- 1.0
- Date
- 2017.12.30
- Copyright
- GNU Public License
◆ is_jisx0201_printable()
| bool shift_jis::is_jisx0201_printable |
( |
const uint8_t * |
c | ) |
|
|
static |
Determines if a given byte is valid for JIS X 0201 and is printable.
- Returns
- True if the byte is valid
In this case, valid means not within the reserved range (0x80 to 0xa0, 0xe0 to 0xff) and not an ASCII control character (0x00 to 0x1f, 0x7f)
◆ is_jisx0208()
| bool shift_jis::is_jisx0208 |
( |
const uint8_t * |
c_h, |
|
|
const uint8_t * |
c_l |
|
) |
| |
|
static |
Determines if the given bytes make up a valid JIS X 0208 character.
- Returns
- True if the bytes are valid
◆ is_jisx0213()
| bool shift_jis::is_jisx0213 |
( |
const uint8_t * |
c_h, |
|
|
const uint8_t * |
c_l |
|
) |
| |
|
static |
Determines if the given bytes make up a valid JIS X 0213 character.
- Returns
- True if the bytes are valid
The documentation for this class was generated from the following files: