init
This commit is contained in:
29
lib/enums/multi_byte_encoding.dart
Normal file
29
lib/enums/multi_byte_encoding.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
/// Multi-byte character encoding for ticket printing.
|
||||
///
|
||||
/// Maps to the autoreplyprint AAR SDK CP_MultiByteEncoding constants.
|
||||
/// The printer uses the specified encoding to interpret received data.
|
||||
///
|
||||
/// Note: value 2 is reserved/unused per SDK specification. The sequence
|
||||
/// jumps from UTF8(1) to BIG5(3).
|
||||
enum MultiByteEncoding {
|
||||
/// GBK encoding (Simplified Chinese)
|
||||
gbk(0),
|
||||
|
||||
/// UTF-8 encoding (Unicode)
|
||||
utf8(1),
|
||||
|
||||
// Note: value 2 is reserved/unused per SDK specification
|
||||
|
||||
/// BIG5 encoding (Traditional Chinese)
|
||||
big5(3),
|
||||
|
||||
/// Shift-JIS encoding (Japanese)
|
||||
shiftJis(4),
|
||||
|
||||
/// EUC-KR encoding (Korean)
|
||||
eucKr(5);
|
||||
|
||||
/// The integer value matching the SDK constant.
|
||||
final int value;
|
||||
const MultiByteEncoding(this.value);
|
||||
}
|
||||
Reference in New Issue
Block a user