MathTop

is_graphic 函数

检验非空字符串中的每个字符是否都可打印且不是空白字符。

语法

  • StringTools:-IsGraphic(text)
  • IsGraphic(text)
  • is_graphic(text)

参数与选项

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

示例

  1. 全可见非空白字符文本StringTools:-IsGraphic('ABC!')返回 true。