MathTop

is_space 函数

判断文本中的每个字符是否都是空白字符。

语法

  • StringTools:-IsWhitespace(text)
  • IsWhitespace(text)
  • StringTools:-IsSpace(text)
  • IsSpace(text)
  • is_space(text)

参数与选项

text文本值,通常写在引号中。

示例

  1. 全为空白StringTools:-IsWhitespace(' ')返回 true。