ヘルプ センターヘルプ センター
UTF-32 表現から 16 進数値への変換
R2021a 以降
hexStr = hex(str32)
例
hexStr = hex(str32) は、UTF-32 表現 str32 を 16 進数値に変換します。
hexStr
str32
すべて折りたたむ
関数 textanalytics.unicode.UTF32 を使用して、string "Hello! 😀" を Unicode UTF-32 文字列表現に変換します。
textanalytics.unicode.UTF32
"Hello! 😀"
str = "Hello! 😀"; str32 = textanalytics.unicode.UTF32(str)
str32 = UTF32 with properties: Data: [72 101 108 108 111 33 32 128512]
関数 hex を使用して str32 を 16 進数値に変換します。
hex
hexStr = " 0048 0065 006C 006C 006F 0021 0020 1F600"
UTF32
UTF-32 文字列表現。UTF32 配列として指定します。
16 進数値。string 配列として返されます。
出力 hexStr は、str32 と同じサイズの string 配列です。ここで、hexStr(i) は、空白文字で区切られた str32(i) に対応する 16 進数値を含む string です。
hexStr(i)
str32(i)
R2021a で導入
tokenizedDocument | textanalytics.unicode.nfc | textanalytics.unicode.nfd | textanalytics.unicode.nfkc | textanalytics.unicode.nfkd | textanalytics.unicode.UTF32 | characterCategories
tokenizedDocument
textanalytics.unicode.nfc
textanalytics.unicode.nfd
textanalytics.unicode.nfkc
textanalytics.unicode.nfkd
characterCategories
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office