operator == abstract method
- Objectother
override
Whetherother is aString with the same sequence of code units.
This method compares each individual code unit of the strings.It does not check for Unicode equivalence.For example, both the following strings represent the string 'Amélie',but due to their different encoding, are not equal:
'Am\xe9lie' == 'Ame\u{301}lie'; // falseThe first string encodes 'é' as a single unicode code unit (alsoa single rune), whereas the second string encodes it as 'e' with thecombining accent character '◌́'.
Implementation
bool operator ==(Object other);