sdmx-twg / vtl

This repository is used for maintaining the SDMX-VTL specification
11 stars 7 forks source link

No example of the use of the parameter occurrence in the operator instr. #189

Closed stratosn closed 1 year ago

stratosn commented 7 years ago
reporter issue reference document (UM/RM/EBNF) page line
ECB2-9 RM 65 2324

Issue Description

There is no example of the use of the parameter occurrence in the operator instr.

Proposed Solution

Add an example with the use of the parameter occurrence in the operator instr.

egreising commented 7 years ago

Add example "On scalar": 2) Assuming that A = "The Task force for the Validation and Transformation Language (VTL)": B := instr (A, "for", ,2) B = 16 (or 15, see below)

Re-sequence example on dataset as "3)..".

IMPORTANT POINT TO REVIEW: It should be defined if the first position of the string is considered 0 or 1. The examples show it as 0 (as well as in substr operator description), but if omitted, startPosition parameter defaults to 1, so the first character would never be counted.

linardian commented 1 year ago

Refers to old version of documentation