mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-06-12 04:37:37 +02: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