Akashic Engine
Preparing search index...
Util
charCodeAt
Function charCodeAt
charCodeAt
(
str
:
string
,
idx
:
number
)
:
null
|
number
idx文字目の文字のchar codeを返す。
これはString#charCodeAt()と次の点で異なる。
idx文字目が上位サロゲートの時これを16bit左シフトし、idx+1文字目の下位サロゲートと論理和をとった値を返す。
idx文字目が下位サロゲートの時nullを返す。
Parameters
str
:
string
文字を取り出される文字列
idx
:
number
取り出される文字の位置
Returns
null
|
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Akashic Engine
Loading...
idx文字目の文字のchar codeを返す。
これはString#charCodeAt()と次の点で異なる。