strings
nullable 문자열을 안전하게 다루기 위한 보다 안전한 메서드를 제공하면서 String 클래스를 확장하는 데 초점을 맞춘 대규모 문자열 함수 모음.
편리한 Dart 문자열 함수 패키지.
^1.3.0^1.1.8^6.2.1^1.0.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
The Strings package is an evolution of the work originally produced by Andrew Mezoni.
The purpose of the Strings package is to provide:
A core objective of the Strings package is to never 'throw' or return an error but to make a best effort to process the passed data.
// passing null works too.
Strings.right(null, 4, pad: Pad.left);
-> ' '
// pass a short string and we can pad it (or not).
Strings.right('one', 4, pad: Pad.left);
-> ' one'
The Strings package also includes a number of methods exposed as extensions to the core Dart String class:
'a normal string'.right(4);
-> 'a no'
The Strings package incudes over 50 functions.
You can see the full list including examples at:
The strings package is hosted on github at: github.com/onepub-dev/strings
Contributions are welcomed.
The strings package is sponsored by OnePub - the private Dart repository SaaS.
OnePub Logo