From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,771462a8fc467d07,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2003-12-15 07:30:02 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news.mainstreet.net!feedwest.aleron.net!aleron.net!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail From: James Antill Newsgroups: comp.os.linux.announce Subject: Vstr 1.0.11 (string library in C) Date: Mon, 15 Dec 2003 09:29:12 CST Organization: Altopia Corp. - Usenet Access - www.altopia.com Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-Path: X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) X-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_OSIRUSOFT_COM,USER_AGENT_GNUS_UA,X_OSIRU_OPEN_RELAY autolearn=ham version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAP93TSCFvAtx2nXvNAQFZ7AH/UlArzxEC6hJkYrOyH0Ye6hbjfQYCrx4A 7Ytf5sxXCM67yPjv+2SVJ7+ly7hSsa0gweLiURwYANyirnSBOhzaaA== =kub5 Xref: archiver1.google.com comp.os.linux.announce:3798 About ----- Vstr is a string library, it's designed so you can work optimally with readv()/writev() for input/output. This means that, for instance, you can readv() data to the end of the string and writev() data from the beginning of the string without having to allocate or move memory. It also means that the library is completely happy with data that has multiple zero bytes in it. This design constraint means that unlike most string libraries Vstr doesn't have an internal representation of the string where everything can be accessed from a single (char *) pointer in C, the internal representation is of multiple "blocks" or nodes each carrying some of the data for the string. This model of representing the data also means that as a string gets bigger the Vstr memory usage only goes up linearly and has no inherent copying. It also means that the string can do automatic referencing for mmap() areas of memory, Other convenience functions are also included, so you can: easily compare data, search for data and split data from a string into sections (similar to perl's split function). In a POSIX environment the short cut functions to call readv/writev are included. It also includes a portable version of a printf-like function (which is ISO 9899:1999 compliant, and includes support for i18n parameter position modifiers). However, as well as being portable, there is a large extension available called "custom formatters" which allows you to print any type (Ie. ipv4 addresses or Vstr strings) via. the printf like function (and this is done in such a way that static format checkers like gcc will understand what is being done). Main Changes ------------ . The output using vstr_sc_fmt_add_ptr() was fixed, as the wrong type was used for vstr_sc_fmt_cb_beg(). . vstr_export_chr() was changed to make it easier to optimize for GCC. . Custom formatters now accept %d instead of the field width or precision in the static format checkers compat. . Build fixes were made for Cygwin, 64-bit architectures, and ICC. . Debug mode no longer raises false errors when changing certain configuration values to be externally allocated. . Added gmp example to install. Download URLs ------------- Overview: http://www.and.org/vstr/ Tutorial: http://www.and.org/vstr/tutorial.html Design: http://www.and.org/vstr/design.html String API comparison: http://www.and.org/vstr/comparison.html Printf comparison: http://www.and.org/vstr/printf_comparison.html ChangeLog: http://www.and.org/vstr/ChangeLog Security: http://www.and.org/vstr/security.html All of the above are included in the tar balls and rpms. Tar balls --------- http://www.and.org/vstr/1.0.11/vstr-1.0.11.tar.gz ftp://ftp.and.org/pub/james/vstr/1.0.11/vstr-1.0.11.tar.gz http://www.and.org/vstr/1.0.11/vstr-1.0.11.tar.bz2 ftp://ftp.and.org/pub/james/vstr/1.0.11/vstr-1.0.11.tar.bz2 YUM repository -------------- [and-org-james] name=And.org James' packages baseurl=ftp://ftp.and.org/yum/fc$releasever-james RPMs ---- http://www.and.org/vstr/rpms/ ftp://ftp.and.org/pub/james/vstr/rpms/ PAD description --------------- http://www.and.org/vstr/vstr_pad.xml -- James Antill -- james@and.org Need an efficent and powerful string library for C? http://www.and.org/vstr/ ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################