Aspose::Words::LowCode::Replacer::Replace method
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)
Parameter | Type | Description |
---|---|---|
inputStream | const System::SharedPtr<System::IO::Stream>& | The input stream. |
outputStream | const System::SharedPtr<System::IO::Stream>& | The output stream. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::SharedPtr<System::Text::RegularExpressions::Regex>& | A regular expression pattern used to find matches. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputStream | const System::SharedPtr<System::IO::Stream>& | The input stream. |
outputStream | const System::SharedPtr<System::IO::Stream>& | The output stream. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::SharedPtr<System::Text::RegularExpressions::Regex>& | A regular expression pattern used to find matches. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
options | const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>& | FindReplaceOptions object to specify additional options. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class FindReplaceOptions
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputStream | const System::SharedPtr<System::IO::Stream>& | The input stream. |
outputStream | const System::SharedPtr<System::IO::Stream>& | The output stream. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::String& | A string to be replaced. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputStream | const System::SharedPtr<System::IO::Stream>& | The input stream. |
outputStream | const System::SharedPtr<System::IO::Stream>& | The output stream. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::String& | A string to be replaced. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
options | const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>& | FindReplaceOptions object to specify additional options. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class FindReplaceOptions
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputFileName | const System::String& | The input file name. |
outputFileName | const System::String& | The output file name. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::SharedPtr<System::Text::RegularExpressions::Regex>& | A regular expression pattern used to find matches. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputFileName | const System::String& | The input file name. |
outputFileName | const System::String& | The output file name. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::SharedPtr<System::Text::RegularExpressions::Regex>& | A regular expression pattern used to find matches. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
options | const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>& | FindReplaceOptions object to specify additional options. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class FindReplaceOptions
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputFileName | const System::String& | The input file name. |
outputFileName | const System::String& | The output file name. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::String& | A string to be replaced. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputFileName | const System::String& | The input file name. |
outputFileName | const System::String& | The output file name. |
saveFormat | Aspose::Words::SaveFormat | The save format. |
pattern | const System::String& | A string to be replaced. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
options | const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions>& | FindReplaceOptions object to specify additional options. |
ReturnValue
The number of replacements made.
See Also
- Enum SaveFormat
- Class FindReplaceOptions
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputFileName | const System::String& | The input file name. |
outputFileName | const System::String& | The output file name. |
pattern | const System::SharedPtr<System::Text::RegularExpressions::Regex>& | A regular expression pattern used to find matches. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
ReturnValue
The number of replacements made.
See Also
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++
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)
Parameter | Type | Description |
---|---|---|
inputFileName | const System::String& | The input file name. |
outputFileName | const System::String& | The output file name. |
pattern | const System::String& | A string to be replaced. |
replacement | const System::String& | A string to replace all occurrences of pattern. |
ReturnValue
The number of replacements made.
See Also
- Class Replacer
- Namespace Aspose::Words::LowCode
- Library Aspose.Words for C++