turkish
0.2.1, released 5 years ago by an unverified publisher
Turkish case conversion and sorting helpers for Dart strings
WASM-ready
What it does
Provides extension methods to correctly convert strings to upper, lower, and title case in Turkish, and to compare or sort strings according to Turkish locale rules.
AI-written summary of version 0.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Turkish‑specific case conversion that Dart’s core libraries don’t handle correctly
- You want to sort or compare strings in Turkish order without writing custom comparators
Skip it when
- You are already using platform‑specific locale methods that handle Turkish correctly
- You need case handling for multiple locales beyond Turkish
Strengths
- Correct i/I mapping for Turkish
- Simple extension methods that integrate seamlessly with Dart strings
- No external dependencies
Weaknesses
- Only supports Turkish locale
- No support for other languages or locale‑aware formatting
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:turkish/turkish.dart';
void main() {
var s = "kısa şiir";
print(s.toUpperCaseTr()); // KISA ŞİİR
print("Zonguldak".compareToTr("Çankırı")); // 1
}Alternatives
Packages that do the same job and could replace turkish.
- validators2
String validation and sanitization for Dart.
83Compare - change_case
Extension on String to convert between many common case styles
59Compare - text_comparison_score_codespark
Calculate string similarity and fuzzy matching scores using Levenshtein, Damerau-Levenshtein, and Jaro-Winkler.
57Compare - dart_casing
Dart library for changing String case style to the desired convention.
47Compare