24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The oxy_substring() FunctionThis function has two signatures:• oxy_substring ( text , startOffset )Returns a new string that is a substring of the original text string. It begins with the character at the specified indexand extends to the end of text string.textstartOffsetThe original string.The beginning index, inclusive• substring ( text , startOffset , endOffset )Returns a new string that is a substring of the original text string. The substring begins at the specified startOffsetand extends to the character at index endOffset - 1.textstartOffsetendOffsetThe original string.The beginning index, inclusiveThe ending index, exclusive.<strong>Author</strong> Developer Guide | 248oxy_substring('abcd', 1) returns the string 'bcd'.oxy_substring('abcd', 4) returns an empty string.oxy_substring('abcd', 1, 3) returns the string 'bc'.The oxy_indexof() FunctionThis function has two signatures:• oxy_indexof ( text , toFind )Returns the index within text string of the first occurrence of the toFind substring.texttoFindText to search in.The searched substring.• oxy_indexof ( text , toFind , fromOffset )Returns the index within text string of the first occurrence of the toFind substring. The search starts from fromOffsetindex.texttoFindfromOffsetText to search in.The searched substring.The index from which to start the search.oxy_indexof('abcd', 'bc') returns 1.oxy_indexof('abcdbc', 'bc', 2) returns 4.The oxy_lastindexof() FunctionThis function has two signatures:• oxy_lastindexof ( text , toFind )Returns the index within text string of the rightmost occurrence of the toFind substring.textText to search in.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!