mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-18 00:33:58 +00:00
feat: add Patcher API.
This commit is contained in:
8
lib/utils/string.dart
Normal file
8
lib/utils/string.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
extension StringCasingExtension on String {
|
||||
String toCapitalized() =>
|
||||
length > 0 ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}' : '';
|
||||
String toTitleCase() => replaceAll(RegExp(' +'), ' ')
|
||||
.split(' ')
|
||||
.map((str) => str.toCapitalized())
|
||||
.join(' ');
|
||||
}
|
||||
Reference in New Issue
Block a user