<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/util/string-util.c, branch 0.34.3</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.34.3</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.34.3'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-03-13T12:45:34Z</updated>
<entry>
<title>util: run uncrustify</title>
<updated>2021-03-13T12:45:34Z</updated>
<author>
<name>uncrustify</name>
<email>david@tethera.net</email>
</author>
<published>2021-03-13T12:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0756d2587220898bdeec2067363a74629411093b'/>
<id>urn:sha1:0756d2587220898bdeec2067363a74629411093b</id>
<content type='text'>
This is the result of running

     $ uncrustify --replace --config ../devel/uncrustify.cfg *.c *.h

in the util directory
</content>
</entry>
<entry>
<title>util: add strsplit_len: simplified strtok with delimiter escaping</title>
<updated>2021-02-06T23:06:49Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-08-08T14:16:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3fb123f215668a54cd6084b2a520f767d2be6712'/>
<id>urn:sha1:3fb123f215668a54cd6084b2a520f767d2be6712</id>
<content type='text'>
This will be used to make iterators for configuration values.
</content>
</entry>
<entry>
<title>util: run uncrustify</title>
<updated>2019-06-14T10:41:27Z</updated>
<author>
<name>uncrustify</name>
<email>david@tethera.net</email>
</author>
<published>2019-06-13T10:33:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1a8916786f9464af6c8a05713a4c987a6b097a12'/>
<id>urn:sha1:1a8916786f9464af6c8a05713a4c987a6b097a12</id>
<content type='text'>
This is the result of running

     $ uncrustify --replace --config ../devel/uncrustify.cfg *.c *.h

in the util directory
</content>
</entry>
<entry>
<title>util/string-util: export skip_space</title>
<updated>2018-09-06T11:07:13Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2018-08-30T11:29:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b8e6f042c57739cc2b183395a3f9dfd64a6eb3d2'/>
<id>urn:sha1:b8e6f042c57739cc2b183395a3f9dfd64a6eb3d2</id>
<content type='text'>
It's only few lines, but we already define the function, so make it
usable elsewhere
</content>
</entry>
<entry>
<title>database: move striping of trailing '/' into helper function</title>
<updated>2017-08-22T21:47:51Z</updated>
<author>
<name>Yuri Volchkov</name>
<email>yuri.volchkov@gmail.com</email>
</author>
<published>2017-08-21T15:44:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cec4a87539599e7d253b694c2a0a81de86d6eb7e'/>
<id>urn:sha1:cec4a87539599e7d253b694c2a0a81de86d6eb7e</id>
<content type='text'>
Stripping trailing character is not that uncommon
operation. Particularly, the next patch has to perform it as
well. Lets move it to the separate function to avoid code duplication.

Also the new function has a little improvement: if the character to
strip is repeated several times in the end of a string, function
strips them all.

Signed-off-by: Yuri Volchkov &lt;yuri.volchkov@gmail.com&gt;
</content>
</entry>
<entry>
<title>Use https instead of http where possible</title>
<updated>2016-06-05T11:32:17Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2016-06-02T16:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6a833a6e83865f6999707cc30768d07e1351c2cb'/>
<id>urn:sha1:6a833a6e83865f6999707cc30768d07e1351c2cb</id>
<content type='text'>
Many of the external links found in the notmuch source can be resolved
using https instead of http.  This changeset addresses as many as i
could find, without touching the e-mail corpus or expected outputs
found in tests.
</content>
</entry>
<entry>
<title>util: add strcmp_null, a strcmp that handles NULL parameters</title>
<updated>2015-09-26T10:37:35Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2015-09-25T16:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bcb695a716bf28691ac21f6faa56e93fd3210486'/>
<id>urn:sha1:bcb695a716bf28691ac21f6faa56e93fd3210486</id>
<content type='text'>
Add strcmp_null, a strcmp that handles NULL strings; in strcmp terms a
NULL string is considered to be less than a non-NULL string.
</content>
</entry>
<entry>
<title>util: move strcase_equal and strcase_hash to util</title>
<updated>2015-09-07T12:43:31Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2015-09-03T19:40:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f460ad4e9a2516b05162cc57c2d3b0e8b814b0c2'/>
<id>urn:sha1:f460ad4e9a2516b05162cc57c2d3b0e8b814b0c2</id>
<content type='text'>
For future use in both cli and lib.
</content>
</entry>
<entry>
<title>util: Const version of strtok_len</title>
<updated>2014-08-06T12:56:36Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2014-08-01T02:09:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9f0f30f7dea1b8fd888d774175ed96d802118b11'/>
<id>urn:sha1:9f0f30f7dea1b8fd888d774175ed96d802118b11</id>
<content type='text'>
Because of limitations in the C type system, we can't a strtok_len
that can work on both const string and non-const strings.  The C
library solves this by taking a const char* and returning a char*
in functions like this (e.g., strchr), but that's not const-safe.
Solve it by introducing strtok_len_c, a version of strtok_len for
const strings.
</content>
</entry>
<entry>
<title>util: Fix two corner-cases in boolean term quoting function</title>
<updated>2014-03-15T18:05:06Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2014-03-11T20:42:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3fed6736a7ef8b8b1f05d0fabb136bdd3b5917ee'/>
<id>urn:sha1:3fed6736a7ef8b8b1f05d0fabb136bdd3b5917ee</id>
<content type='text'>
Previously, make_boolean_term did not quote empty boolean terms or
boolean terms that started with '('.  These cases are incompatible
with Xapian: empty terms cannot be omitted, and boolean terms that
start with '(' trigger an alternate term quoting syntax.

Fix this by quoting empty terms and terms that contain '('.
</content>
</entry>
</feed>
