Difference between revisions of "%scutf"
From Zenitel Wiki
(New page: Event_Handler macro - Extract substring by field, fields defined by delimiter character. Format: '''scutf(string, delimiter, field-no''' *''delimiter'' is a single char, possibly esc...) |
m |
||
Line 1: | Line 1: | ||
[[Event_Handler]] macro - Extract substring by field, fields defined by delimiter character. | [[Event_Handler]] macro - Extract substring by field, fields defined by delimiter character. | ||
− | Format: '''scutf(string, delimiter, field-no''' | + | Format: '''scutf(string, delimiter, field-no)''' |
*''delimiter'' is a single char, possibly escaped. Optionally followed by + sign to indicate that more than one delimiter character is allowed between fields. | *''delimiter'' is a single char, possibly escaped. Optionally followed by + sign to indicate that more than one delimiter character is allowed between fields. |
Revision as of 15:10, 17 July 2007
Event_Handler macro - Extract substring by field, fields defined by delimiter character.
Format: scutf(string, delimiter, field-no)
- delimiter is a single char, possibly escaped. Optionally followed by + sign to indicate that more than one delimiter character is allowed between fields.
- field-no is a integer number, counting starts from zero!
- Example of escaped delimiters : Tab= \t ‘,’ = \,
- Useful for parsing External_Data_Input.
Examples:
%scutf(%edi, +,3) extract field number 3; fields separated by any number of spaces %scutf(%edi,\,,3) extract field number 3; fields separated by commas
Back to Event_Handler#List_of_macros.