名前¶
Win32::OLE::NLS - OLE National Language Support
Win32::OLE::NLS - OLE 各国語サポート
概要¶
missing
説明¶
This module provides access to the national language support features in the OLENLS.DLL.
このモジュールは OLENLS.DLL の各国語サポート機能へのアクセスを提供します。
関数¶
- CompareString(LCID,FLAGS,STR1,STR2)
-
Compare STR1 and STR2 in the LCID locale. FLAGS indicate the character traits to be used or ignored when comparing the two strings.
LCID ロケールで STR1 と STR2 を比較します。 FLAGS は二つの文字列を比較する際に使用される、あるいは無視される文字の 特徴を示します。
NORM_IGNORECASE Ignore case NORM_IGNOREKANATYPE Ignore hiragana/katakana character differences NORM_IGNORENONSPACE Ignore accents, diacritics, and vowel marks NORM_IGNORESYMBOLS Ignore symbols NORM_IGNOREWIDTH Ignore character width
NORM_IGNORECASE 大文字と小文字を区別しない
NORM_IGNOREKANATYPE ひらがなとカタカナを区別しない
NORM_IGNORENONSPACE アクセント、付加記号、発音記号を無視する
NORM_IGNORESYMBOLS 記号を無視する
NORM_IGNOREWIDTH 文字列の幅を無視する
Possible return values are:
あり得る戻り値は以下の通りです:
0 Function failed
1 STR1 is less than STR2
2 STR1 is equal to STR2
3 STR1 is greater than STR2
0 関数が失敗
1 STR1 は STR2 よりも小さい
2 STR1 は STR2 と同じ
3 STR1 は STR2 よりも大きい
Note that you can subtract 2 from the return code to get values comparable to the cmp operator.
cmp 演算子と比較できる値を取得するために、戻り値から 2 を引くことが できることに注意してください。
LCMapString translates STR using LCID dependent translation. Flags contains a combination of the following options:
LCMapString は LCID に依存した変換で STR を変換します。 フラグには以下のオプションの組み合わせが入ります:
LCMAP_LOWERCASE 小文字化
LCMAP_UPPERCASE 大文字化
LCMAP_HALFWIDTH 半角化
LCMAP_FULLWIDTH 全角化
LCMAP_HIRAGANA ひらなが化
LCMAP_KATAKANA カタカナ化
LCMAP_SORTKEY 正規化されたワイド文字のソートキーを作成
The following normalization options can be combined with LCMAP_SORTKEY:
以下の正規化オプションを LCMAP_SORTKEY に組み合わせることができます:
NORM_IGNORECASE Ignore case
NORM_IGNOREKANATYPE Ignore hiragana/katakana character differences
NORM_IGNORENONSPACE Ignore accents, diacritics, and vowel marks
NORM_IGNORESYMBOLS Ignore symbols
NORM_IGNOREWIDTH Ignore character width
NORM_IGNORECASE 大文字と小文字を区別しない
NORM_IGNOREKANATYPE ひらがなとカタカナを区別しない
NORM_IGNORENONSPACE アクセント、付加記号、発音記号を無視する
NORM_IGNORESYMBOLS 記号を無視する
NORM_IGNOREWIDTH 文字列の幅を無視する
The return value is the translated string.
戻り値は変換された文字列です。
Retrieve locale setting LCTYPE from the locale specified by LCID. Use LOCALE_NOUSEROVERRIDE | LCTYPE to always query the locale database. Otherwise user changes to win.ini through the windows control panel take precedence when retrieving values for the system default locale. See the documentation below for a list of valid LCTYPE values.
ロケール設定 LCTYPE を LCID で指定されたロケールから取り出します。 ロケールデータベースに問い合わせるためには常に LOCALE_NOUSEROVERRIDE | LCTYPEを使ってください。 そうでなければ値を取り出す際に、Windows コントロールパネルを通じて ユーザによる win.ini に変更が、システムデフォルトロケールよりも 優先されます。 下記の適切な LCTYPE 値のリストについての文章をご覧ください。
The return value is the contents of the requested locale setting.
戻り値は要求されたロケール設定の内容です。
Retrieve type information from locale LCID about each character in STR. The requested TYPE can be one of the following 3 levels:
ロケール LCID から STR にある各文字についての型情報を取り出します。 要求される TYPE は以下の三つのレベルのいずれかにすることができます:
CT_CTYPE1 ANSI C and POSIX type information
CT_CTYPE2 Text layout type information
CT_CTYPE3 Text processing type information
CT_CTYPE1 ANSI C と POSIX 型情報
CT_CTYPE2 テキストレイアウト型情報
CT_CTYPE3 テキスト処理型情報
The return value is a list of values, each of wich is a bitwise OR of the applicable type bits from the corresponding table below:
戻り値は、下記の対応テーブルからの適応できるタイプビットの OR による 値のリストです:
@ct = GetStringType(LOCALE_SYSTEM_DEFAULT, CT_CTYPE1, "String");
ANSI C and POSIX character type information:
ANSI C と POSIX 文字型情報:
C1_UPPER Uppercase
C1_LOWER Lowercase
C1_DIGIT Decimal digits
C1_SPACE Space characters
C1_PUNCT Punctuation
C1_CNTRL Control characters
C1_BLANK Blank characters
C1_XDIGIT Hexadecimal digits
C1_ALPHA Any letter