[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using libunistring for string comparisons et al
From: |
Ludovic Courtès |
Subject: |
Re: Using libunistring for string comparisons et al |
Date: |
Thu, 31 Mar 2011 16:19:17 +0200 |
User-agent: |
Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux) |
Hello,
Andy Wingo <address@hidden> writes:
> Any change to Guile's internal character encoding should not start from
> the premise that string-ref is obsolete or unimportant, especially
> considering that there is no other standard "string pointer" mechanism.
+1
There are idioms like:
(let ((start (string-index s #\,))
(end (string-rindex s #\,)))
(substring s (+ 1 start) end))
which may not have a better equivalent (sometimes ‘string-tokenize’ can
be used, sometimes not.)
Thanks,
Ludo’.
- Re: Using libunistring for string comparisons et al, (continued)
- O(1) accessors for UTF-8 backed strings, Mark H Weaver, 2011/03/12
- Re: O(1) accessors for UTF-8 backed strings, Alex Shinn, 2011/03/12
- Re: O(1) accessors for UTF-8 backed strings, Mark H Weaver, 2011/03/15
- Re: O(1) accessors for UTF-8 backed strings, Alex Shinn, 2011/03/15
- Re: O(1) accessors for UTF-8 backed strings, Andy Wingo, 2011/03/19
- Re: O(1) accessors for UTF-8 backed strings, Andy Wingo, 2011/03/30
- Re: Using libunistring for string comparisons et al, Andy Wingo, 2011/03/30
- Re: Using libunistring for string comparisons et al,
Ludovic Courtès <=
- Re: Using libunistring for string comparisons et al, Ludovic Courtès, 2011/03/12