Article View: borland.public.cppbuilder.nativeapi
Article #11486Re: Sorting wrt to national characters
From: Bob Gonder
Date: Thu, 05 Feb 2004 23:53
Date: Thu, 05 Feb 2004 23:53
39 lines
2316 bytes
2316 bytes
Helmut Giese wrote: >Hello out there, Hello in there. >you might not know it, but over here in Germany we have some special >chars like � or � or � (hope these show up in your news reader). When >sorting, an � should sort like it was spelled 'ae' instead. >Are there sort functions in Windows which respect the sort order of >national character sets? From Help: 1) An application sends a CB_SETLOCALE message to set the current locale of the combo box. If the combo box has the CBS_SORT style and strings are added using CB_ADDSTRING, the locale of a combo box affects how list items are sorted. 2) The CompareString function compares two character strings, using the locale specified by the given identifier as the basis for the comparison. 3) The lstrcmp function compares two character strings. The comparison is case sensitive. The language (locale) selected by the user at setup time, or via the control panel, determines which string is greater (or whether the strings are the same). If no language (locale) is selected, Windows performs the comparison by using default values. In the Windows United States language functions, uppercase characters have lower values than lowercase characters. 4) Also see Writing, Mapping, and Sorting Characters in win32.hlp
Technical Details
Message-ID:
<hcl520pr25uak4dhov6fmbti8gug0b8kqv@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40225e48.6667195@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,c683662493791f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-05 16:11:03 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Sorting wrt to national characters Date: Thu, 05 Feb 2004 15:53:32 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <hcl520pr25uak4dhov6fmbti8gug0b8kqv@4ax.com> References: <40225e48.6667195@forums.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 65.56.154.57 X-Trace: newsgroups.borland.com 1076025210 65.56.154.57 (5 Feb 2004 15:53:30 -0800) Lines: 41 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail