fullwidth_halfwidth_converter 1.0.2 fullwidth_halfwidth_converter: ^1.0.2 copied to clipboard
Package to provide conversion between fullwidth and halfwidth in Japanese.
example/fullwidth_halfwidth_converter_example.dart
// ignore_for_file: avoid_print
import 'package:fullwidth_halfwidth_converter/fullwidth_halfwidth_converter.dart';
void main() {
//fullwidth to halfwidth conversion
const fullwidthInput = 'アA1?';
print(fullwidthInput.toHalfwidth()); // this shows 'アA1?'
print(fullwidthInput.toHalfwidth(convertNumber: true)); // this shows 'アA1?'
print(fullwidthInput.toHalfwidth(convertAlphabet: true)); // this shows 'アA1?'
print(fullwidthInput.toHalfwidth(convertSymbol: true)); // this shows 'アA1?'
print(fullwidthInput.toHalfwidth(convertKana: true)); // this shows 'アA1?'
//halfwidth to fullwidth conversion
const halfwidthInput = 'アA1?';
print(halfwidthInput.toFullwidth()); // this shows 'アA1?'
print(halfwidthInput.toFullwidth(convertNumber: true)); // this shows 'アA1?'
print(halfwidthInput.toFullwidth(convertAlphabet: true)); // this shows 'アA1?'
print(halfwidthInput.toFullwidth(convertSymbol: true)); // this shows 'アA1?'
print(halfwidthInput.toFullwidth(convertKana: true)); // this shows 'アA1?'
}