@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class RegexReplace extends Pointer
pattern
regular expression in input
with the
replacement string provided in rewrite
.
It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax)
Arguments:
* scope: A Scope object
* input: The text to be processed.
* pattern: The regular expression to be matched in the input
strings.
* rewrite: The rewrite string to be substituted for the pattern
expression where it is
matched in the input
strings.
Optional attributes (see Attrs
):
* replace_global: If True, the replacement is global (that is, all matches of the pattern
regular
expression in each input string are rewritten), otherwise the rewrite
substitution is only made for the first pattern
match.
Returns:
* Output
: The text after applying pattern match and rewrite substitution.Modifier and Type | Class and Description |
---|---|
static class |
RegexReplace.Attrs
Optional attribute setters for RegexReplace
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RegexReplace(Pointer p)
Pointer cast constructor.
|
RegexReplace(Scope scope,
Input input,
Input pattern,
Input rewrite) |
RegexReplace(Scope scope,
Input input,
Input pattern,
Input rewrite,
RegexReplace.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
RegexReplace |
operation(Operation setter) |
Output |
output() |
RegexReplace |
output(Output setter) |
static RegexReplace.Attrs |
ReplaceGlobal(boolean x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public RegexReplace(Pointer p)
Pointer(Pointer)
.public RegexReplace(@Const @ByRef Scope scope, @ByVal Input input, @ByVal Input pattern, @ByVal Input rewrite)
public Node node()
@ByVal public static RegexReplace.Attrs ReplaceGlobal(@Cast(value="bool") boolean x)
public RegexReplace operation(Operation setter)
public RegexReplace output(Output setter)
Copyright © 2022. All rights reserved.