SAP ABAP Class CL_ABAP_MATCHER (Regular Expressions)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-ABA-LA (Application Component) Syntax, Compiler, Runtime
⤷
SABP_REGEX (Package) Regular Expressions

⤷

⤷

Properties
Class | CL_ABAP_MATCHER | |
Short Description | Regular Expressions | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ||
Program status | S | System Program |
Category | 0 | |
Package | SABP_REGEX | Regular Expressions |
Created | 20031210 | SAP |
Last change | 20110908 | SAP |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_ABAP_MATCHER has no interface implemented.
Friends
# | Friend | Modeled only | Created on | Description |
---|---|---|---|---|
1 | CL_ABAP_REGEX | 20031210 | Regular Expressions |
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | Search in Internal Table | 20040223 | ||
2 | ![]() |
Instance attribute | Public | Object reference (TYPE REF TO) | CL_ABAP_REGEX | Pattern of Regular Expression | 20031210 | ||
3 | ![]() |
Instance attribute | Private | Type reference (TYPE) | INT4 | 0 | (Current Search Row in Table) | 20040223 | |
4 | ![]() |
Instance attribute | Private | Type reference (TYPE) | %_C_POINTER | (Internal State of the Search) | 20040504 | ||
5 | ![]() |
Static Attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_MATCHER | Last Static Search | 20040506 | ||
6 | ![]() |
Instance attribute | Public | Type reference (TYPE) | STRING_TABLE | Table to be Searched in | 20031219 | ||
7 | ![]() |
Instance attribute | Public | Type reference (TYPE) | STRING | Text to be Searched in | 20031210 | ||
8 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | Match Saved | 20050301 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Constructor | Assignment of a regular expression to a character string | 20031210 |
2 | ![]() |
Static method | Public | Method | Search for Regular Expression | 20040311 |
3 | ![]() |
Static method | Public | Method | Function for Creating a Matchers | 20031212 |
4 | ![]() |
Instance method | Public | Destructor | Deletion of the Internal State (Internal Destructor) | 20040505 |
5 | ![]() |
Instance method | Public | Method | Search for all Subsequent Matches | 20031218 |
6 | ![]() |
Instance method | Public | Method | Search for Next Match | 20040505 |
7 | ![]() |
Instance method | Public | Method | Query of the Length of the Last Match Found | 20040505 |
8 | ![]() |
Instance method | Public | Method | Query of the Row of the Last Match Found | 20031212 |
9 | ![]() |
Instance method | Public | Method | Query of the Current State | 20040505 |
10 | ![]() |
Static method | Public | Method | Generation of an Instance for Static Method Call | 20040311 |
11 | ![]() |
Instance method | Public | Method | Query of the Replacement of the Last Match Found | 20040505 |
12 | ![]() |
Instance method | Public | Method | Subgroup Query | 20031212 |
13 | ![]() |
Instance method | Public | Method | Use Regular Expression for Remaininn Character Set | 20031210 |
14 | ![]() |
Static method | Public | Method | Test for Match with Regular Expression | 20040429 |
15 | ![]() |
Instance method | Public | Method | Replacement of all Subsequent Matches | 20031218 |
16 | ![]() |
Instance method | Public | Method | Replacement of the Last Match Found | 20040505 |
17 | ![]() |
Instance method | Public | Method | Replacement of the Next Match | 20031219 |
18 | ![]() |
Instance method | Private | Method | (Internal Kernal Method) | 20040504 |
19 | ![]() |
Instance method | Private | Method | (Access to Internal State) | 20040504 |
20 | ![]() |
Instance method | Private | Method | (Internal Initialization) | 20040504 |
21 | ![]() |
Instance method | Private | Method | (Internal Generation of MB Shadow Text) | 20050301 |
22 | ![]() |
Instance method | Private | Method | (Internal Kernal Method) | 20040505 |
23 | ![]() |
Instance method | Private | Method | (Internal Generation of the Replacement Text) | 20050301 |
Events
Class CL_ABAP_MATCHER has no event.
Types
Class CL_ABAP_MATCHER has no local type.
Method Signatures
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
REGEX | Call by reference | Object reference (TYPE REF TO) | CL_ABAP_REGEX | Regulärer Ausdruck | 20031212 | ||
2 | ![]() |
TABLE | Call by reference | Type reference (TYPE) | STANDARD TABLE | Zu durchsuchende Tabelle | 20031212 | ||
3 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | CLIKE | Zu durchsuchender Text | 20031210 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040220 |
Method CONTAINS Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IGNORE_CASE | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Groß-/Kleinschreibung ignorieren | 20040311 | |
2 | ![]() |
NO_SUBMATCHES | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Keine Untergruppen speichern | 20040506 | |
3 | ![]() |
PATTERN | Call by reference | Type reference (TYPE) | CLIKE | Suchmuster | 20040311 | ||
4 | ![]() |
SIMPLE_REGEX | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Vereinfachte Ausdrücke verwenden | 20040506 | |
5 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | Suchmuster gefunden | 20040311 | ||
6 | ![]() |
TABLE | Call by reference | Type reference (TYPE) | STANDARD TABLE | Zu durchsuchende interne Tabelle | 20040512 | ||
7 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | CLIKE | Zu durchsuchender Text | 20040311 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040512 | |
2 | ![]() |
System Exceptions für reguläre Ausdrücke | 20050406 |
Method CREATE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IGNORE_CASE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Groß-/Kleinschreibung ignorieren | 20031212 | |
2 | ![]() |
MATCHER | Value transfer | Object reference (TYPE REF TO) | CL_ABAP_MATCHER | Matcher für reguläre Ausdrücke | 20031219 | ||
3 | ![]() |
NO_SUBMATCHES | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Keine Registrierung für Untergruppen | 20040527 | |
4 | ![]() |
PATTERN | Call by reference | Type reference (TYPE) | CLIKE | Regulärer Ausdruck | 20031212 | ||
5 | ![]() |
SIMPLE_REGEX | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Vereinfachte Syntax verwenden | 20040527 | |
6 | ![]() |
TABLE | Call by reference | Type reference (TYPE) | STANDARD TABLE | Zu durchsuchende Tabelle | 20040219 | ||
7 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | CLIKE | Zu durchsuchender Text | 20031212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040219 | |
2 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040219 |
Method DESTRUCTOR Signature
Method DESTRUCTOR on class CL_ABAP_MATCHER has no parameter.
Method DESTRUCTOR on class CL_ABAP_MATCHER has no exception.
Method FIND_ALL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
MATCHES | Value transfer | Type reference (TYPE) | MATCH_RESULT_TAB | Alle neu gefundenen Vorkommen des Ausdrucks | 20031218 |
Method FIND_ALL on class CL_ABAP_MATCHER has no exception.
Method FIND_NEXT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | TRUE, falls der Ausdrucks gefunden wurde | 20040505 |
Method FIND_NEXT on class CL_ABAP_MATCHER has no exception.
Method GET_LENGTH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
INDEX | Value transfer | Type reference (TYPE) | I | 0 | Untergruppe des Ausdrucks | 20040505 | |
2 | ![]() |
LENGTH | Value transfer | Type reference (TYPE) | I | Länge der Untergruppe des gefundenen Vorkommens | 20040505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040505 |
Method GET_LINE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
LINE | Value transfer | Type reference (TYPE) | I | Zeile der gefundenen Übereinstimmung | 20031212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040204 |
Method GET_MATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
MATCH | Value transfer | Type reference (TYPE) | MATCH_RESULT | Informationen über zuletzt gefundene Übereinstimmung | 20040505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040505 |
Method GET_OBJECT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
MATCHER | Value transfer | Object reference (TYPE REF TO) | CL_ABAP_MATCHER | Zustand der letzten statischen Suche | 20040429 |
Method GET_OBJECT on class CL_ABAP_MATCHER has no exception.
Method GET_OFFSET Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
INDEX | Value transfer | Type reference (TYPE) | I | 0 | Untergruppe des Ausdrucks | 20040505 | |
2 | ![]() |
OFFSET | Value transfer | Type reference (TYPE) | I | Versatz der Untergruppe des gefundenen Vorkommens | 20040505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040505 |
Method GET_SUBMATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
INDEX | Value transfer | Type reference (TYPE) | I | Untergruppe des Ausdrucks | 20031212 | ||
2 | ![]() |
SUBMATCH | Value transfer | Type reference (TYPE) | STRING | Informationen über Untergruppe der gefundenen Übereinstimmg. | 20031212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040204 |
Method MATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | Boolscher Wert,der angibt ob Muster auf den Gesamttext passt | 20031212 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040223 |
Method MATCHES Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IGNORE_CASE | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Groß-/Kleinschreibung ignorieren | 20040506 | |
2 | ![]() |
NO_SUBMATCHES | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | keine Untergruppen speichern | 20040506 | |
3 | ![]() |
PATTERN | Call by reference | Type reference (TYPE) | CLIKE | Regulärer Ausdruck | 20040429 | ||
4 | ![]() |
SIMPLE_REGEX | Value transfer | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | vereinfachte Ausdrücke verwenden | 20040506 | |
5 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | Ergebnis der Prüfung | 20040429 | ||
6 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | CLIKE | Auf Übereinstimmung zu prüfender Text | 20040429 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System Exceptions für reguläre Ausdrücke | 20050406 |
Method REPLACE_ALL Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
COUNT | Value transfer | Type reference (TYPE) | INT4 | Anzahl der ersetzten Vorkommen | 20040505 | ||
2 | ![]() |
NEWTEXT | Call by reference | Type reference (TYPE) | CLIKE | Ersatztext | 20040219 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20050406 |
Method REPLACE_FOUND Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
NEWTEXT | Call by reference | Type reference (TYPE) | CLIKE | Ersatztext | 20040505 | ||
2 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | TRUE, falls gefundenes Vorkommen ersetzt wurde | 20040505 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040505 |
Method REPLACE_NEXT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
NEWTEXT | Call by reference | Type reference (TYPE) | CLIKE | Ersatztext | 20040219 | ||
2 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | TRUE, falls ein weiteres Vorkommen ersetzt wurde | 20031219 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20050406 |
Method _FIND Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
AUTOMATON | Call by reference | Type reference (TYPE) | %_C_POINTER | zu verwendender Automat | 20040504 | ||
2 | ![]() |
STATE | Call by reference | Type reference (TYPE) | %_C_POINTER | interner Zustand | 20040504 | ||
3 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | Sucherfolg | 20040504 | ||
4 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | STRING | zu durchsuchender Text | 20040504 |
Method _FIND on class CL_ABAP_MATCHER has no exception.
Method _GET_SUBMATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
GROUPS | Call by reference | Type reference (TYPE) | INT4 | Anzahl Untergruppen | 20040505 | ||
2 | ![]() |
INDEX | Call by reference | Type reference (TYPE) | INT4 | Untergruppe | 20040504 | ||
3 | ![]() |
PATTERN | Call by reference | Type reference (TYPE) | STRING | Suchmuster | 20040506 | ||
4 | ![]() |
STATE | Call by reference | Type reference (TYPE) | %_C_POINTER | interner Zustand | 20040504 | ||
5 | ![]() |
SUBMATCH | Call by reference | Type reference (TYPE) | SUBMATCH_RESULT | Gefundene Übereinstimmung | 20040504 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20040510 |
Method _INIT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
STATE | Value transfer | Type reference (TYPE) | %_C_POINTER | interner Zustand | 20040504 |
Method _INIT on class CL_ABAP_MATCHER has no exception.
Method _LOAD Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
STATE | Call by reference | Type reference (TYPE) | %_C_POINTER | Mit Schattentext aktualisierter Zustand | 20050301 | ||
2 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | STRING | Zu konvertierender Text | 20050301 |
Method _LOAD on class CL_ABAP_MATCHER has no exception.
Method _MATCH Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
AUTOMATON | Call by reference | Type reference (TYPE) | %_C_POINTER | zu verwendender Automat | 20040505 | ||
2 | ![]() |
STATE | Call by reference | Type reference (TYPE) | %_C_POINTER | interner Zustand | 20040505 | ||
3 | ![]() |
SUCCESS | Value transfer | Type reference (TYPE) | ABAP_BOOL | Übereinstimmungsergebnis | 20040505 | ||
4 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | STRING | zu prüfender Text | 20040505 |
Method _MATCH on class CL_ABAP_MATCHER has no exception.
Method _REPLACE Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
NEWTEXT | Call by reference | Type reference (TYPE) | CLIKE | Formatangabe | 20050301 | ||
2 | ![]() |
PATTERN | Call by reference | Type reference (TYPE) | STRING | Suchmuster | 20050301 | ||
3 | ![]() |
STATE | Call by reference | Type reference (TYPE) | %_C_POINTER | interner Zustand | 20050301 | ||
4 | ![]() |
TEXT | Call by reference | Type reference (TYPE) | STRING | zu bearbeitender Text | 20050301 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
System-Exceptions für reguläre Ausdrücke | 20050301 |
History
Last changed by/on | SAP | 20110908 |
SAP Release Created in | 710 |