fullwidth_halfwidth_converter 1.0.2 copy "fullwidth_halfwidth_converter: ^1.0.2" to clipboard
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?'
}
1
likes
160
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

Package to provide conversion between fullwidth and halfwidth in Japanese.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on fullwidth_halfwidth_converter