MathTop

string_border_length 函数

返回文本最长 border 的长度。

语法

  • StringTools:-BorderLength(text)
  • BorderLength(text)
  • string_border_length(text)

参数与选项

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

示例

  1. Border 长度StringTools:-BorderLength('ababa')返回 3。