Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

match offset and match length

Former Member
0 Kudos

hi

can anyon explain me what is match offset and match length and where and why should we use.

thanks

alka

1 REPLY 1

Former Member
0 Kudos

Hi Alka,

MATCH OFFSET

If the search string pattern is found in the search range, the addition MATCH OFFSET stores the offset of the last found location in relation to the data object dobj in the data object moff. If FIRST OCCURRENCE is used, this is the offset of the first found location.

.MATCH LENGTH

If the search string pattern is found in the search range, the addition MATCH LENGTH stores the length of the last found substring in the data object mlen. If using FIRST OCCURRENCE, this is the length of the first found location. For mlen, a variable of data type i is expected. If the search is not successful, mlen contains its previous value.

          • do rewards if usefull

vijay