printable_char 1.1.0 copy "printable_char: ^1.1.0" to clipboard
printable_char: ^1.1.0 copied to clipboard

Test if a character code represents a printable character.

printable_char #

Test if a character code represents a printable character.

Usage #

Add the dependency to your pubspec.yaml.

dependencies:
  printable_char: ^1.0.0

Then import the library and use it.

import 'package:printable_char/printable_char.dart';

main() {
  bool x = isPrintable('x'.codeUnitAt(0));
  print(x);
}

Build #

If you need to update this library to support the latest unicode version follow these instructions. This is not required if you only are only using the library.

  • Make sure you have the current stable version of go installed.

  • From the project root directory run ./tool/build_tables.sh.

This will generate dart source containing tables from the go standard libraries unicode tables.

Credit #

This package was forked from [https://github.com/xxgreg/dart_printable_char].

1
likes
110
pub points
22%
popularity

Publisher

verified publishernopestudio.fr

Test if a character code represents a printable character.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on printable_char