v4.1.0
recase
入力テキストのケースを、希望するケース規則に変更します。
370いいね 272万30日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
techniboogie-dart/recase open-source repository details.
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Changes the case of the input text to the desire case convention.
import 'package:recase/recase.dart';
void main() {
ReCase rc = new ReCase('Just_someSample-text');
print(rc.camelCase); // Prints 'justSomeSampleText'
print(rc.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}
String extensions are also available.
import 'package:recase/recase.dart';
void main() {
String sample = 'Just_someSample-text';
print(sample.camelCase); // Prints 'justSomeSampleText'
print(sample.constantCase); // Prints 'JUST_SOME_SAMPLE_TEXT'
}
This feature is available in version 3.0.0, and requires at least Dart 2.6
Supports:
依存関係一覧 1 件
^1.16.8用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗