substr

substr

 英

  • 网络字符串;子串;字符串截取

例句

The substr _replace() function replaces a part of a string with another string.

函数作用替换字符串一部分字符串

An implementation like that makes use of the fact that functions like SUBSTR and LENGTH still work correctly on the GRAPHIC data type.

SUBSTRLENGTH函数仍然可以正确地处理GRAPHIC数据类型所以这样实现有效

The substr () function returns a part of a string.

函数作用返回字符串可以

In combination with the data types that use UTF-8 encoding, functions like SUBSTR and LENGTH still work with bytes and not with characters.

使用UTF-8编码数据类型结合使用时,SUBSTRLENGTH函数仍然处理字节不是字符

Functions like SUBSTR and LENGTH work with characters when called in conjunction with UCS-2 data types.

UCS-2数据类型调用SUBSTRLENGTH函数处理字符

You saw in Part 1, Figure 13 that the cn attribute type has a field called SUBSTR, which defines the matching rules for substring match.

第1部分13可以看到cn属性类型一个叫做SUBSTR字段定义字符串匹配匹配规则

often-overlooked thing about substr() is that you can use a negative character position.

一个容易忽略特点可以使用字符串起始位置

This explains the use of substr(text, match[0], match[1]) in the last line of code.

解释最后一行代码substr(text,match[0],match[1])使用