Class RegexpReplaceFunction
A function that uses a regexp to replace parts of a string or byte slice.
Extend this class to refine existing API models. If you want to model new APIs,
extend RegexpReplaceFunction::Range instead.
Import path
import semmle.go.ConceptsDirect supertypes
Indirect supertypes
Predicates
| getRegexp | Gets the regexp pattern that is used to match patterns to replace in the call to this function |
| getRegexpArg | Gets the function input that is the regexp that matches text to replace. |
| getResult | Gets the function output corresponding to the result, that is, the value after replacement has occurred. |
| getSource | Gets the function input corresponding to the source value, that is, the value that is having its contents replaced. |
Inherited predicates
| getACall | Gets a call to this function. | from Function |
| getAParameter | Gets a parameter of this function. | from Function |
| getARead | Gets a data-flow node that reads the value of this entity. | from ValueEntity |
| getAReference | Gets a reference to this entity. | from Entity |
| getAResult | Gets a result variable of this function. | from Function |
| getAWrite | Gets a control-flow node that updates the value of this entity. | from ValueEntity |
| getBody | Gets the body of this function, if any. | from Function |
| getDeclaration | Gets the declaring identifier for this entity, if any. | from Entity |
| getFuncDecl | Gets the declaration of this function, if any. | from Function |
| getLocation | Gets the location of this entity. | from Entity |
| getName | Gets the name of this entity. | from Entity |
| getNumParameter | Gets the number of parameters of this function. | from Function |
| getNumResult | Gets the number of results of this function. | from Function |
| getPackage | Gets the package in which this entity is declared, if any. | from Entity |
| getParameter | Gets the | from Function |
| getParameterType | Gets the type of the | from Function |
| getQualifiedName | Gets the qualified name of this entity, if any. | from Entity |
| getResult | Gets the | from Function |
| getResultType | Gets the type of the | from Function |
| getScope | Gets the scope in which this entity is declared, if any. | from Entity |
| getType | Gets the type of this entity. | from Entity |
| hasLocationInfo | DEPRECATED: Use | from Entity |
| hasQualifiedName | Holds if this entity is declared in a package with path | from Entity |
| isVariadic | Holds if this function is variadic. | from Function |
| mayHaveSideEffects | Holds if this function has no observable side effects. | from Function |
| mayPanic | Holds if calling this function may cause a runtime panic. | from Function |
| mayReturnNormally | Holds if this function may return without panicking, exiting the process, or looping forever. | from Function |
| mustPanic | Holds if calling this function always causes a runtime panic. | from Function |
| toString | Gets a textual representation of this entity. | from Entity |