Aspose::Words::LowCode::Replacer::Replace method

Contents
[ ]

Replacer::Replace(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex>&, const System::String&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &pattern, const System::String &replacement)
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::SharedPtr<System::Text::RegularExpressions::Regex>&A regular expression pattern used to find matches.
replacementconst System::String&A string to replace all occurrences of pattern.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex>&, const System::String&, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &pattern, const System::String &replacement, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &options)
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::SharedPtr<System::Text::RegularExpressions::Regex>&A regular expression pattern used to find matches.
replacementconst System::String&A string to replace all occurrences of pattern.
optionsconst System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&FindReplaceOptions object to specify additional options.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::String&, const System::String&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::String &pattern, const System::String &replacement)
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::String&A string to be replaced.
replacementconst System::String&A string to replace all occurrences of pattern.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, Aspose::Words::SaveFormat, const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::SharedPtr<System::IO::Stream> &inputStream, const System::SharedPtr<System::IO::Stream> &outputStream, Aspose::Words::SaveFormat saveFormat, const System::String &pattern, const System::String &replacement, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &options)
ParameterTypeDescription
inputStreamconst System::SharedPtr<System::IO::Stream>&The input stream.
outputStreamconst System::SharedPtr<System::IO::Stream>&The output stream.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::String&A string to be replaced.
replacementconst System::String&A string to replace all occurrences of pattern.
optionsconst System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&FindReplaceOptions object to specify additional options.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::String&, const System::String&, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex>&, const System::String&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::String &inputFileName, const System::String &outputFileName, Aspose::Words::SaveFormat saveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &pattern, const System::String &replacement)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::SharedPtr<System::Text::RegularExpressions::Regex>&A regular expression pattern used to find matches.
replacementconst System::String&A string to replace all occurrences of pattern.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::String&, const System::String&, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex>&, const System::String&, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::String &inputFileName, const System::String &outputFileName, Aspose::Words::SaveFormat saveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &pattern, const System::String &replacement, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &options)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::SharedPtr<System::Text::RegularExpressions::Regex>&A regular expression pattern used to find matches.
replacementconst System::String&A string to replace all occurrences of pattern.
optionsconst System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&FindReplaceOptions object to specify additional options.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::String&, const System::String&, Aspose::Words::SaveFormat, const System::String&, const System::String&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::String &inputFileName, const System::String &outputFileName, Aspose::Words::SaveFormat saveFormat, const System::String &pattern, const System::String &replacement)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::String&A string to be replaced.
replacementconst System::String&A string to replace all occurrences of pattern.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::String&, const System::String&, Aspose::Words::SaveFormat, const System::String&, const System::String&, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::String &inputFileName, const System::String &outputFileName, Aspose::Words::SaveFormat saveFormat, const System::String &pattern, const System::String &replacement, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &options)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
saveFormatAspose::Words::SaveFormatThe save format.
patternconst System::String&A string to be replaced.
replacementconst System::String&A string to replace all occurrences of pattern.
optionsconst System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>&FindReplaceOptions object to specify additional options.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::String&, const System::String&, const System::SharedPtr<System::Text::RegularExpressions::Regex>&, const System::String&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::String &inputFileName, const System::String &outputFileName, const System::SharedPtr<System::Text::RegularExpressions::Regex> &pattern, const System::String &replacement)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
patternconst System::SharedPtr<System::Text::RegularExpressions::Regex>&A regular expression pattern used to find matches.
replacementconst System::String&A string to replace all occurrences of pattern.

ReturnValue

The number of replacements made.

See Also

Replacer::Replace(const System::String&, const System::String&, const System::String&, const System::String&) method

Replaces all occurrences of a specified character string pattern with a replacement string.

static int32_t Aspose::Words::LowCode::Replacer::Replace(const System::String &inputFileName, const System::String &outputFileName, const System::String &pattern, const System::String &replacement)
ParameterTypeDescription
inputFileNameconst System::String&The input file name.
outputFileNameconst System::String&The output file name.
patternconst System::String&A string to be replaced.
replacementconst System::String&A string to replace all occurrences of pattern.

ReturnValue

The number of replacements made.

See Also