You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TYPES: BEGIN OF ty_submatch,
offset TYPE i,
length TYPE i,
END OF ty_submatch.
TYPES: BEGIN OF ty_match,
line TYPE i,
offset TYPE i,
length TYPE i,
submatches TYPE STANDARD TABLE OF ty_submatch WITH DEFAULT KEY,
END OF ty_match.
DATA lt_matches TYPE STANDARD TABLE OF ty_match WITH DEFAULT KEY.
DATA ls_match LIKE LINE OF lt_matches.
DATA ls_submatch LIKE LINE OF ls_match-submatches.
FINDREGEX|bar|IN|hello bar world|RESULTS lt_matches.
ASSERTlines( lt_matches ) =1.
READ TABLE lt_matches INDEX1INTO ls_match.
ASSERT ls_match-line =0.
ASSERT ls_match-offset =6.
ASSERT ls_match-length =3.
ASSERTlines( ls_match-submatches ) =0.
FINDREGEX|(bar)|IN|hello bar world|RESULTS lt_matches.
ASSERTlines( lt_matches ) =1.
READ TABLE lt_matches INDEX1INTO ls_match.
ASSERTlines( ls_match-submatches ) =1.
READ TABLE ls_match-submatches INDEX1INTO ls_submatch.
ASSERT ls_submatch-offset =6.
ASSERT ls_submatch-length =3.
https://github.com/abaplint/transpiler/blob/master/packages/runtime/src/statements/find.ts
The text was updated successfully, but these errors were encountered: