path: root/src/basic/string-util.h
diff options
authorZbigniew Jędrzejewski-Szmek <>2016-10-22 16:11:41 -0400
committerSven Eden <>2017-07-17 17:58:34 +0200
commit910c586574a52c6b4cbc6638193797008da076c7 (patch)
tree43e6d4842f185439c9e22eeb45e56aea851f40aa /src/basic/string-util.h
parent3b148b365934f5baf2c9162e2454ca416b666531 (diff)
tree-wide: use startswith return value to avoid hardcoded offset
I think it's an antipattern to have to count the number of bytes in the prefix by hand. We should do this automatically to avoid wasting programmer time, and possible errors. I didn't any offsets that were wrong, so this change is mostly to make future development easier.
Diffstat (limited to 'src/basic/string-util.h')
0 files changed, 0 insertions, 0 deletions