charCode(String): Number 入力文字列の最初の文字の Unicode を返します。 空の文字列の場合、この関数は失敗し、Unexpected empty string を返します。 パラメーター 名前 説明 text 入力文字列。 例 次の例では、「Mule」の「M」の Unicode を返します。 ソース %dw 2.0 import * from dw::core::Strings output application/json --- { "charCode" : charCode("Mule") } 出力 { "charCode" : 77 }
charCode(String): Number 入力文字列の最初の文字の Unicode を返します。 空の文字列の場合、この関数は失敗し、Unexpected empty string を返します。 パラメーター 名前 説明 text 入力文字列。 例 次の例では、「Mule」の「M」の Unicode を返します。 ソース %dw 2.0 import * from dw::core::Strings output application/json --- { "charCode" : charCode("Mule") } 出力 { "charCode" : 77 }