]> sigrok.org Git - libsigrok.git/commit
strutil: add common helpers for input text parsing (lines, words)
authorGerhard Sittig <redacted>
Sun, 2 Jul 2023 07:39:39 +0000 (09:39 +0200)
committerGerhard Sittig <redacted>
Wed, 12 Jul 2023 18:42:40 +0000 (20:42 +0200)
commit227913f26433bb09b353c2339c1ecc339692df61
tree736f9e632736c0b878ee39d3d14dbf5c0befde2c
parentf3bca6d9cec6fea8c3dc3754eabe8d8d7c684788
strutil: add common helpers for input text parsing (lines, words)

Introduce the sr_text_next_line() and sr_text_next_word() routines which
split an input buffer into text lines and identify whitespace separated
words on a text line. Several input modules redundantly implement this,
having common support is desirable.
include/libsigrok/proto.h
src/strutil.c