Skip to main content

str_index_of

Function str_index_of 

Source
pub(crate) fn str_index_of(
    _: &mut Interp,
    t: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

str.indexOf(search, position)(位置は文字単位)。 【2026-10-17】従来は第 2 引数(開始位置)を無視していた。探索は str::find(バイト列)。