strtoken (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: string

Requires: MathScript RT Module

Syntax

c = strtoken(a)

c = strtoken(a, b)

[c, d] = strtoken(a)

[c, d] = strtoken(a, b)

Legacy Name: strtok

Description

Determines the first delimited token in a string. c = strtoken(a) determines the first token that is delimited by white space. c = strtoken(a, b) determines the first token that is delimited by another string.

Examples

Inputs

Name Description
a Specifies the string in which you want to find the first delimited token.
b Specifies a string that delimits the token you want to find.

Outputs

Name Description
c Returns the first delimited token. c is a string.
d Returns the part of a, including the delimiter, that follows c.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = 'this is a test for strtoken'
B = 'is'
[C, D] = strtoken(A, B)

Related Topics

findstr
strcmp_n
strfindall
strmatchall

文章是否对您有帮助?

没有帮助