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? - @param bytes bytes encoding a string, whose encoding should be guessed @param hints decode hints if applicable @return Charset of guessed encoding; at the moment will only guess one of: {@link #SHIFT_JIS_CHARSET}, {@link StandardCharsets#UTF_8}, {@link StandardCharsets#ISO_8859_1}, {@link StandardCharsets#UTF_16}, or the platform default encoding if none of these can possibly be correct
-
guessEncoding(
Uint8List bytes, DecodeHint? hints) → String - @param bytes bytes encoding a string, whose encoding should be guessed @param 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