SyntaxLength

SyntaxLength["string"]

単一のWolfram言語の入力式として文法的に正しい,文字列の始めからの文字数を返す.

詳細

  • SyntaxLengthは,シンタックスエラーが存在する場合,その位置を返す.
  • SyntaxLengthが列の終りを超えた位置を返す場合,これはこの列のシンタックスは適正だが,Wolfram言語の閉じた入力式となるには継続が必要なことを表す.

例題

  (1)

構文的に正しい先頭の部分文字列の長さを返す:

構文的に正しい部分は式に変換できる:

Wolfram Research (1991), SyntaxLength, Wolfram言語関数, https://reference.wolfram.com/language/ref/SyntaxLength.html.

テキスト

Wolfram Research (1991), SyntaxLength, Wolfram言語関数, https://reference.wolfram.com/language/ref/SyntaxLength.html.

CMS

Wolfram Language. 1991. "SyntaxLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SyntaxLength.html.

APA

Wolfram Language. (1991). SyntaxLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SyntaxLength.html

BibTeX

@misc{reference.wolfram_2024_syntaxlength, author="Wolfram Research", title="{SyntaxLength}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/SyntaxLength.html}", note=[Accessed: 24-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_syntaxlength, organization={Wolfram Research}, title={SyntaxLength}, year={1991}, url={https://reference.wolfram.com/language/ref/SyntaxLength.html}, note=[Accessed: 24-November-2024 ]}