Index Of String (LogiXノード)

From Neos Wiki
Jump to navigation Jump to search
This page is a translated version of the page Index Of String (LogiX node) and the translation is 100% complete.
Other languages:
English • ‎日本語
Index Of String
'Index Of String' LogiX node
Inputs
  String Str
  String Part
  Int StartIndex
  Bool SearchFromEnd
Outputs
  Int *

Index Of Stringノードは、入力された Part に正確に一致する部分文字列が存在する Str 内の位置インデックスを出力します。

使用方法

StartIndex は入力 Str 内で Part の検索を開始する位置を定義します。デフォルトは0です。


SearchFromEnd 入力は、StartIndexからどの方向に検索を進めるかを決定します。false (デフォルト) の場合、検索は左から右へ進み、true の場合は右から左へ進みます。


デフォルトの出力は-1です。これは、StrPartnull や空文字列である場合、あるいは現在の入力から Part が見つからない場合に出力される可能性があります。

StartIndex には、より大きな値 (一般的には Str の長さ - 1) を設定する必要があることに注意してください。

IndexOfString.jpg

ノードメニュー

String
Back Characters Quick Format Special Characters + < >
× Capitalize Compare Strings Contains Empty String
Ends With Escape String Format Get Type Index Of String Is String Empty New Line
Null String Replace First Substring Replace Substring Reverse String Starts With String Insert String Join
String Length String Remove Strip RTF Tags Substring To Lower To String To Upper
Trim String Unescape String