Skip to content
pubscout

string_unescape

2.0.0, released 5 years ago by an unverified publisher

Utility to unescape string representations including unicode, newline, and tab characters.

WASM-ready
$ flutter pub add string_unescape
Source repository

What it does

Provides functions to unescape string representations and characters such as unicode sequences, newlines, and tabs. It handles both full strings and individual characters.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to parse string representations containing escaped characters like newlines or tabs.
  • You need to unescape unicode sequences within strings.

Skip it when

  • You only need standard string manipulation not involving escape sequences.

Strengths

  • Simple and straightforward API with `unescape` and `unescapeChar` functions.
  • Supports null safety.

Weaknesses

  • Very narrow and specialized scope.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
expect(unescape(r"a\nb"), "a\nb");
expect(unescapeChar(r"🀀"), 0x1F000);

Alternatives

Packages that do the same job and could replace string_unescape.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.

  • validators2

    String validation and sanitization for Dart.

  • characters

    Unicode and grapheme cluster aware string manipulation operations for Dart.