From 296b679d6e3217cc112b7ed19b363b82356615ef Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 6 Aug 2017 08:42:01 -0400 Subject: Implement findFirst and findLast in InputSource Preparing to refactor some pattern searching code to use these instead of their own memchr loops. This should simplify the code that replaces PCRE. --- libtests/qtest/input_source/input_source.out | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libtests/qtest/input_source/input_source.out (limited to 'libtests/qtest/input_source/input_source.out') diff --git a/libtests/qtest/input_source/input_source.out b/libtests/qtest/input_source/input_source.out new file mode 100644 index 00000000..6af379c6 --- /dev/null +++ b/libtests/qtest/input_source/input_source.out @@ -0,0 +1,14 @@ +find potato salad: PASS +barely find potato salad: PASS +barely find potato salad: PASS +potato salad is too late: PASS +potato salad is too late: PASS +potato salad not found: PASS +potato salad not found: PASS +potato salad at EOF: PASS +findFirst found first: PASS +findLast found potato salad: PASS +findLast found at EOF: PASS +potato but not salad salad at EOF: PASS +findLast found potato salad: PASS +findLast found first one: PASS -- cgit v1.2.3-54-g00ecf