Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. String
  4. operator == abstract method
operator ==
description

operator == abstract method

booloperator ==(
  1. 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'; // false

The 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);
  1. Dart
  2. dart:core
  3. String
  4. operator == abstract method
String class

[8]ページ先頭

©2009-2025 Movatter.jp