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.
fullwidth_halfwidth_converter #
Provide conversion between fullwidth and halfwidth in Japanese.
Features #
- You can select indivisual conversion type. Number, Alphabet, Symbol and Kana are available.
- Provide extensions on
String
.
Usage #
In your code:
import 'package:fullwidth_halfwidth_converter/fullwidth_halfwidth_converter.dart';
final converted = 'アA1?'.toHalfwidth();
print(converted);// this shows 'アA1?'.
// you can specify conversion type.
final numberAndKanaConverted = 'アA1?'.toFullwidth(convertNumber:true,convertKana:true);
print(numberAndKanaConverted);// this shows 'アA1?'.