public class

NameNormalizer

extends Object
java.lang.Object
   ↳ com.android.providers.contacts.NameNormalizer

Class Overview

Converts a name to a normalized form by removing all non-letter characters and normalizing UNICODE according to http://unicode.org/unicode/reports/tr15

Summary

Public Constructors
NameNormalizer()
Public Methods
static int compareComplexity(String name1, String name2)
Compares "complexity" of two names, which is determined by the presence of mixed case characters, accents and, if all else is equal, length.
static String normalize(String name)
Converts the supplied name to a string that can be used to perform approximate matching of names.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NameNormalizer ()

Public Methods

public static int compareComplexity (String name1, String name2)

Compares "complexity" of two names, which is determined by the presence of mixed case characters, accents and, if all else is equal, length.

public static String normalize (String name)

Converts the supplied name to a string that can be used to perform approximate matching of names. It ignores non-letter characters and removes accents.