当前位置:七道奇文章资讯编程技术VC/C++编程
日期:2011-03-22 13:54:00  来源:本站整理

LCMapString函数[VC/C++编程]

赞助商链接



  本文“LCMapString函数[VC/C++编程]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

LCMapString函数

The LCMapString function either maps an input character string to another using a specified transformation or generates a sort key for the input string.

定义

int LCMapString(LCID Locale, DWORD dwMapFlags, LPCTSTR lpSrcStr, int cchSrc, LPTSTR lpDestStr, int cchDest);

参数

Locale

[in] Specifies a locale identifier. The locale provides a context for the string mapping or sort key generation. An application can use the MAKELCID macro to create a locale identifier.

dwMapFlags

[in] Specifies the type of transformation used during string mapping or the type of sort key generated. An application can specify one or more of the following options. Restrictions are noted following the table.

LCMAP_BYTEREV - Windows NT/2000/XP: Use byte reversal. For example, if you pass in 0x3450 0x4822 the result is 0x5034 0x2248.

LCMAP_FULLWIDTH - Uses wide characters (where applicable).

LCMAP_HALFWIDTH - Uses narrow characters (where applicable).

LCMAP_HIRAGANA - Hiragana.

LCMAP_KATAKANA - Katakana.

LCMAP_LINGUISTIC_CASING - Uses linguistic rules for casing, rather than file system rules (the default). Valid with LCMAP_LOWERCASE or LCMAP_UPPERCASE only.

LCMAP_LOWERCASE - Uses lowercase.

LCMAP_SIMPLIFIED_CHINESE - Windows NT 4.0 and later: Maps traditional Chinese characters to simplified Chinese characters.

LCMAP_SORTKEY - Produces a normalized wide charactersort key. For more information, see lpDestStr and Remarks.

LCMAP_TRADITIONAL_CHINESE - Windows NT 4.0 and later: Maps simplified Chinese characters to traditional Chinese characters.

LCMAP_UPPERCASE - Uses uppercase.

The following flags are used only with the LCMAP_SORTKEY flag. Flag Meaning

NORM_IGNORECASE - Ignores case.

NORM_IGNOREKANATYPE - Does not differentiate between Hiragana and Katakana characters. Corresponding Hiragana and Katakana will compare as equal.

NORM_IGNORENONSPACE - Ignores nonspacing. This flag also removes Japanese accent characters.

NORM_IGNORESYMBOLS - Ignores symbols.

NORM_IGNOREWIDTH - Does not differentiate between a single-byte character and the same character as a double-byte character.

SORT_STRINGSORT - Treats punctuation the same as symbols.


  以上是“LCMapString函数[VC/C++编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:

  • LCMapString函数
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .