pespin has uploaded this change for review.

View Change

Misc_Helpers: f_str_split(): Fix parse with len(delimiter) > 1

Change-Id: I1ac53635deea82a501f2a8c7a94faf501ddf7afd
---
M library/Misc_Helpers.ttcn
1 file changed, 10 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/19/36719/1
diff --git a/library/Misc_Helpers.ttcn b/library/Misc_Helpers.ttcn
index fd2e7bb..805254a 100644
--- a/library/Misc_Helpers.ttcn
+++ b/library/Misc_Helpers.ttcn
@@ -94,7 +94,7 @@
if (delim_pos > pos) {
parts := parts & { substr(str, pos, delim_pos - pos) };
}
- pos := delim_pos + 1;
+ pos := delim_pos + lengthof(delim);
}
return parts;
}

To view, visit change 36719. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I1ac53635deea82a501f2a8c7a94faf501ddf7afd
Gerrit-Change-Number: 36719
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-MessageType: newchange