Re: Boost process and C



websnarf@xxxxxxxxx wrote:
CBFalconer wrote:

.... snip ...

The last time I took an (admittedly cursory) look at Bstrlib, I
found it cursed with non-portabilities

You perhaps would like to name one?

I took another 2 minute look, and was immediately struck by the use
of int for sizes, rather than size_t. This limits reliably
available string length to 32767. I did find an explanation and
justification for this. Conceded, such a size is probably adequate
for most usage, but the restriction is not present in standard C
strings.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>


.



Relevant Pages

  • Re: Hash functions (was: Maximum String size in Java?)
    ... Bstrlib is *NOT* suspect. ... > your string library has problems with them speaks for itself. ... some kind of corruption of the raw source file. ... occurred to me that the corruption was truly in the source file itself. ...
    (comp.programming)
  • Re: Boost process and C
    ... The last time I took an look at Bstrlib, ... The C standard says that whether or not "string literals" are writable ... bit compilers, and UTF-32 in its 32 bit compilers (while not ... In terms of API size, Bstrlib is about 80 base C functions (which ...
    (comp.lang.c)
  • Re: Secure C library
    ... >> string functions don't make much sense once you add bounds-checking ... >> designing an interface just for the purpose of reducing the frequency ... > make buffer size decisions more visible, ... Bstrlib is also very interoperable with char *'s, ...
    (comp.std.c)
  • Re: Boost process and C
    ... available string length to 32767. ... Using size_t is also not any more *portable* than using int. ... of portability is merely a reflection of the lack of the intrinsic ... "Cursed with non-portabilities" indeed ... ...
    (comp.lang.c)
  • Re: Handling delimited strings
    ... library written in C and C++, which adds useful string functionality to ... In Bstrlib you can call bgetsor similar functions on top of fgetc. ... A reference, or pointer, to a sub-string in FILENAME ... > The COUNT action would return the number of delimiters in FILENAME at ...
    (comp.programming)