strreplace (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

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

Owning Class: string

Requires: MathScript RT Module

Syntax

d = strreplace(a, b, c)

Legacy Name: strrep

Description

Replaces strings.

Examples

Inputs

Name Description
a Specifies the string in which you want to perform a string replacement.
b Specifies the string you want to replace.
c Specifies the string with which you want to replace each occurrence of b.

Outputs

Name Description
d Returns a with all occurrences of b replaced with 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 strreplace'
B = 'test'
C = 'TEST'
D = strreplace(A, B, C)

Related Topics

findstr
regex_replace
strcmp
strcmp_i
strfindall
strmatchall
strtrimwhite

文章是否对您有帮助?

没有帮助