CaseMapping class final

A locale-sensitive case mapper for transforming strings.

This class provides methods to convert strings to lowercase or uppercase based on the current locale.

import 'package:intl4x/case_mapping.dart';

void main() {
  final caseMapping = CaseMapping(locale: Locale('tr'));
  print(caseMapping.toUpperCase('i')); // Prints 'İ'
}

Caution: During testing, the input is returned unchanged.

Constructors

CaseMapping({Locale? locale})
Constructs a CaseMapping instance for the given locale.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toLowerCase(String input) String
Lowercases the given input.
toString() String
A string representation of this object.
inherited
toUpperCase(String input) String
Uppercases the given input.

Operators

operator ==(Object other) bool
The equality operator.
inherited