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 ABAP 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 IN_TABLE Instance attribute Private Type reference (TYPE) ABAP_BOOL Search in Internal Table 20040223
2 REGEX Instance attribute Public Object reference (TYPE REF TO) CL_ABAP_REGEX Pattern of Regular Expression 20031210
3 ROW Instance attribute Private Type reference (TYPE) INT4 0 (Current Search Row in Table) 20040223
4 STATE Instance attribute Private Type reference (TYPE) %_C_POINTER (Internal State of the Search) 20040504
5 S_MATCHER Static Attribute Private Object reference (TYPE REF TO) CL_ABAP_MATCHER Last Static Search 20040506
6 TABLE Instance attribute Public Type reference (TYPE) STRING_TABLE Table to be Searched in 20031219
7 TEXT Instance attribute Public Type reference (TYPE) STRING Text to be Searched in 20031210
8 VALID_MATCH Instance attribute Private Type reference (TYPE) ABAP_BOOL Match Saved 20050301
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Public Constructor Assignment of a regular expression to a character string 20031210
2 CONTAINS Static method Public Method Search for Regular Expression 20040311
3 CREATE Static method Public Method Function for Creating a Matchers 20031212
4 DESTRUCTOR Instance method Public Destructor Deletion of the Internal State (Internal Destructor) 20040505
5 FIND_ALL Instance method Public Method Search for all Subsequent Matches 20031218
6 FIND_NEXT Instance method Public Method Search for Next Match 20040505
7 GET_LENGTH Instance method Public Method Query of the Length of the Last Match Found 20040505
8 GET_LINE Instance method Public Method Query of the Row of the Last Match Found 20031212
9 GET_MATCH Instance method Public Method Query of the Current State 20040505
10 GET_OBJECT Static method Public Method Generation of an Instance for Static Method Call 20040311
11 GET_OFFSET Instance method Public Method Query of the Replacement of the Last Match Found 20040505
12 GET_SUBMATCH Instance method Public Method Subgroup Query 20031212
13 MATCH Instance method Public Method Use Regular Expression for Remaininn Character Set 20031210
14 MATCHES Static method Public Method Test for Match with Regular Expression 20040429
15 REPLACE_ALL Instance method Public Method Replacement of all Subsequent Matches 20031218
16 REPLACE_FOUND Instance method Public Method Replacement of the Last Match Found 20040505
17 REPLACE_NEXT Instance method Public Method Replacement of the Next Match 20031219
18 _FIND Instance method Private Method (Internal Kernal Method) 20040504
19 _GET_SUBMATCH Instance method Private Method (Access to Internal State) 20040504
20 _INIT Instance method Private Method (Internal Initialization) 20040504
21 _LOAD Instance method Private Method (Internal Generation of MB Shadow Text) 20050301
22 _MATCH Instance method Private Method (Internal Kernal Method) 20040505
23 _REPLACE 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 Importing REGEX Call by reference Object reference (TYPE REF TO) CL_ABAP_REGEX Regulärer Ausdruck 20031212
2 Importing TABLE Call by reference Type reference (TYPE) STANDARD TABLE Zu durchsuchende Tabelle 20031212
3 Importing TEXT Call by reference Type reference (TYPE) CLIKE Zu durchsuchender Text 20031210
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Importing IGNORE_CASE Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE Groß-/Kleinschreibung ignorieren 20040311
2 Importing NO_SUBMATCHES Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE Keine Untergruppen speichern 20040506
3 Importing PATTERN Call by reference Type reference (TYPE) CLIKE Suchmuster 20040311
4 Importing SIMPLE_REGEX Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE Vereinfachte Ausdrücke verwenden 20040506
5 Returning SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL Suchmuster gefunden 20040311
6 Importing TABLE Call by reference Type reference (TYPE) STANDARD TABLE Zu durchsuchende interne Tabelle 20040512
7 Importing TEXT Call by reference Type reference (TYPE) CLIKE Zu durchsuchender Text 20040311
# Exception Resumable Description Created on
1 CX_SY_MATCHER System-Exceptions für reguläre Ausdrücke 20040512
2 CX_SY_REGEX 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 Importing IGNORE_CASE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Groß-/Kleinschreibung ignorieren 20031212
2 Returning MATCHER Value transfer Object reference (TYPE REF TO) CL_ABAP_MATCHER Matcher für reguläre Ausdrücke 20031219
3 Importing NO_SUBMATCHES Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Keine Registrierung für Untergruppen 20040527
4 Importing PATTERN Call by reference Type reference (TYPE) CLIKE Regulärer Ausdruck 20031212
5 Importing SIMPLE_REGEX Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE Vereinfachte Syntax verwenden 20040527
6 Importing TABLE Call by reference Type reference (TYPE) STANDARD TABLE Zu durchsuchende Tabelle 20040219
7 Importing TEXT Call by reference Type reference (TYPE) CLIKE Zu durchsuchender Text 20031212
# Exception Resumable Description Created on
1 CX_SY_MATCHER System-Exceptions für reguläre Ausdrücke 20040219
2 CX_SY_REGEX 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 Returning 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 Returning 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 Importing INDEX Value transfer Type reference (TYPE) I 0 Untergruppe des Ausdrucks 20040505
2 Returning LENGTH Value transfer Type reference (TYPE) I Länge der Untergruppe des gefundenen Vorkommens 20040505
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Returning LINE Value transfer Type reference (TYPE) I Zeile der gefundenen Übereinstimmung 20031212
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Returning MATCH Value transfer Type reference (TYPE) MATCH_RESULT Informationen über zuletzt gefundene Übereinstimmung 20040505
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Returning 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 Importing INDEX Value transfer Type reference (TYPE) I 0 Untergruppe des Ausdrucks 20040505
2 Returning OFFSET Value transfer Type reference (TYPE) I Versatz der Untergruppe des gefundenen Vorkommens 20040505
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Importing INDEX Value transfer Type reference (TYPE) I Untergruppe des Ausdrucks 20031212
2 Returning SUBMATCH Value transfer Type reference (TYPE) STRING Informationen über Untergruppe der gefundenen Übereinstimmg. 20031212
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Returning 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 CX_SY_MATCHER 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 Importing IGNORE_CASE Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE Groß-/Kleinschreibung ignorieren 20040506
2 Importing NO_SUBMATCHES Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE keine Untergruppen speichern 20040506
3 Importing PATTERN Call by reference Type reference (TYPE) CLIKE Regulärer Ausdruck 20040429
4 Importing SIMPLE_REGEX Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE vereinfachte Ausdrücke verwenden 20040506
5 Returning SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL Ergebnis der Prüfung 20040429
6 Importing TEXT Call by reference Type reference (TYPE) CLIKE Auf Übereinstimmung zu prüfender Text 20040429
# Exception Resumable Description Created on
1 CX_SY_REGEX 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 Returning COUNT Value transfer Type reference (TYPE) INT4 Anzahl der ersetzten Vorkommen 20040505
2 Importing NEWTEXT Call by reference Type reference (TYPE) CLIKE Ersatztext 20040219
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Importing NEWTEXT Call by reference Type reference (TYPE) CLIKE Ersatztext 20040505
2 Returning SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL TRUE, falls gefundenes Vorkommen ersetzt wurde 20040505
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Importing NEWTEXT Call by reference Type reference (TYPE) CLIKE Ersatztext 20040219
2 Returning SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL TRUE, falls ein weiteres Vorkommen ersetzt wurde 20031219
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Importing AUTOMATON Call by reference Type reference (TYPE) %_C_POINTER zu verwendender Automat 20040504
2 Importing STATE Call by reference Type reference (TYPE) %_C_POINTER interner Zustand 20040504
3 Returning SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL Sucherfolg 20040504
4 Importing 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 Exporting GROUPS Call by reference Type reference (TYPE) INT4 Anzahl Untergruppen 20040505
2 Importing INDEX Call by reference Type reference (TYPE) INT4 Untergruppe 20040504
3 Importing PATTERN Call by reference Type reference (TYPE) STRING Suchmuster 20040506
4 Importing STATE Call by reference Type reference (TYPE) %_C_POINTER interner Zustand 20040504
5 Exporting SUBMATCH Call by reference Type reference (TYPE) SUBMATCH_RESULT Gefundene Übereinstimmung 20040504
# Exception Resumable Description Created on
1 CX_SY_MATCHER 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 Returning 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 Importing STATE Call by reference Type reference (TYPE) %_C_POINTER Mit Schattentext aktualisierter Zustand 20050301
2 Importing 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 Importing AUTOMATON Call by reference Type reference (TYPE) %_C_POINTER zu verwendender Automat 20040505
2 Importing STATE Call by reference Type reference (TYPE) %_C_POINTER interner Zustand 20040505
3 Returning SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL Übereinstimmungsergebnis 20040505
4 Importing 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 Importing NEWTEXT Call by reference Type reference (TYPE) CLIKE Formatangabe 20050301
2 Importing PATTERN Call by reference Type reference (TYPE) STRING Suchmuster 20050301
3 Importing STATE Call by reference Type reference (TYPE) %_C_POINTER interner Zustand 20050301
4 Changing TEXT Call by reference Type reference (TYPE) STRING zu bearbeitender Text 20050301
# Exception Resumable Description Created on
1 CX_SY_MATCHER System-Exceptions für reguläre Ausdrücke 20050301
History
Last changed by/on SAP  20110908 
SAP Release Created in 710