Using Win32 functions in Visual FoxPro Image Gallery
National Language Support
..msdn
CompareString
GetACP
GetCurrencyFormat
GetDateFormat
GetLocaleInfo
GetNumberFormat
GetOEMCP
GetStringTypeEx
GetSystemDefaultLangID
GetSystemDefaultLCID
GetSystemDefaultLocaleName
GetThreadLocale
GetUserDefaultLangID
GetUserDefaultLCID
GetUserDefaultLocaleName
GetUserGeoID
LCIDToLocaleName
LocaleNameToLCID
NormalizeString
SetUserGeoID
Code examples:
NormalizeString
..msdn    Add comment     W32 Constants      Translate this page
Normalizes characters of a text string according to Unicode 4.0 TR#15.
Code examples:
Declaration:
 
int NormalizeString(
  _In_       NORM_FORM NormForm,
  _In_       LPCWSTR lpSrcString,
  _In_       int cwSrcLength,
  _Out_opt_  LPWSTR lpDstString,
  _In_       int cwDstLength
);
 
FoxPro declaration:
 
DECLARE INTEGER NormalizeString IN kernel32;
    INTEGER NormForm,;
    STRING lpSrcString,;
    INTEGER cwSrcLength,;
    STRING @lpDstString,;
    INTEGER cwDstLength
 
 
Parameters:
NormForm [in]
Normalization form to use. NORM_FORM specifies the standard Unicode normalization forms.

lpSrcString [in]
Pointer to the non-normalized source string.

cwSrcLength [in]
Length, in characters, of the buffer containing the source string. The application can set this parameter to -1 if the function should assume the string to be null-terminated and calculate the length automatically.

lpDstString [out, optional]
Pointer to a buffer in which the function retrieves the destination string.

cwDstLength [in]
Length, in characters, of the buffer containing the destination string. Alternatively, the application can set this parameter to 0 to request the function to return the required size for the destination buffer.
Return value:
Returns the length of the normalized string in the destination buffer.
Usage:
 
nNormForm = 2 && NormalizationD
 
cSource = "Δffin"
 
nLength = NormalizeString(;
    m.nNormForm,;
    STRCONV(m.cSource + CHR(0), 5),;
    -1,;
    NULL,;
    0)
 
cNormalized = REPLICATE(;
    CHR(0), nLength * 2) && Unicode
 
= NormalizeString(;
    m.nNormForm,;
    STRCONV(m.cSource + CHR(0), 5),;
    -1,;
    @cNormalized,;
    m.nLength)
 
? cSource
? STRCONV(cNormalized, 6) && from Unicode
 
My comment:
MSDN: Using Unicode Normalization to Represent Strings

See also: IsNormalizedString
Word Index links for the NormalizeString :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
•
Created: 2015-01-20 18:31:18
Modified: 2015-01-20 18:35:59
Visited in last 7 days: 6
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.20.86.177)
2 sec.Function: 'EnumPrintProcessors'
5 sec.Function: 'CreateToolhelp32Snapshot'
7 sec.Function: 'DeviceCapabilities'
10 sec.
Function group: 'Mailslot'
13 sec.Function: 'GdipResetWorldTransform'
15 sec.Function: 'FtpGetCurrentDirectory'
18 sec.Function: 'htons'
21 sec.Function: 'IpReleaseAddress'
23 sec.Function: 'AVIStreamGetFrameOpen'
27 sec.Function: 'ControlService'
Google
Advertise here!