- %XML.GlobalCharacterStream extends %Library.GlobalCharacterStream
- therefore it has method FindAt()
method FindAt(position As %Integer, target As %CacheString, ByRef tmpstr As %CacheString = "", caseinsensitive As %Boolean = 0) as %Integer
Find the first occurrence of target in the stream starting the search at position. It returns the position at this match starting at the beginning of the stream. If it does not find the target string then return -1. If position=-1 then start searching from the current location and just return the offset from the last search, useful for searching through the entire file. If you are doing this you should pass in tmpstr by reference in every call which is used as a temporary location to store information being read so the next call will start where the last one left off. If you pass caseinsensitive=1 then the search will be case insensitive rather than the default case sensitive search.
Copy to String may help but is limited by MAXSTRING size.
There you may use [ (=contains OPERATOR) or $FIND() function
Don't mix up SQL predicate %CONTAINS with [ (string contains operator)
- Log in to post comments
+ + +
* * * * *.png)
.png)