String Comparisons
This appendix describes how Automation compares strings. These comparisons are important when creating applications that support national language accents and digraphs. The information in this appendix applies to the following:
When comparing strings, Automation components use the following rules:
-
Comparisons are sensitive to locale, based on the string's locale identifier (LCID). A string must have an LCID that is supported by the application or type library. For more information about locales and LCIDs, refer to the section "Supporting Multiple National Languages," in Chapter 2, "Exposing ActiveX Objects."
-
Accent characters are ignored. For example, the string à compares the same as a.
-
Case is ignored. For example, the string A compares the same as a.
-
Comparisons are sensitive to digraphs. For example, the string Æ is not the same as AE.
-
For Japanese, Korean, and Chinese locales, ITypeLib::FindName and IDispatch::GetIDsOfNames ignore width and kanatype.