StringUtils class

Common string-related functions.

@author Sean Owen @author Alex Dupre

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

eucJpEncoding → Encoding
final
gbkCharset → Encoding
final
gbkName → String
final
shiftJisCharset → Encoding
final
shiftJisEncoding → String
final

Static Methods

canEncode(Encoding? encoding, String char) → bool
guessCharset(Uint8List bytes, DecodeHint? hints) → Encoding?
bytes bytes encoding a string, whose encoding should be guessed hints decode hints if applicable return Charset of guessed encoding; at the moment will only guess one of: shiftJis, utf8, latin1, or the platform default encoding if none of these can possibly be correct
guessEncoding(Uint8List bytes, DecodeHint? hints) → String
bytes bytes encoding a string, whose encoding should be guessed hints decode hints if applicable return name of guessed encoding; at the moment will only guess one of: "SJIS", "UTF8", "ISO8859_1", or the platform default encoding if none of these can possibly be correct