Linux SoftwareProgrammingLibrariesVstr string library 1.0.15

Vstr string library 1.0.15


Vstr is a safe and fast string library for C
Developer:   James Antill
      more software by author →
Price:  0.00
License:   LGPL (GNU Lesser General Public License)
File size:   4363K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


Vstr is a safe and fast string library for C. Vstr string library is designed for network communication. Its design uses chunks of ptr+length data, so adding, substituting, and deleting data are all fast operations.

This model also allows it to do automatic referencing for mmap() areas of memory. Shortcut APIs are included to mmap() a file into a Vstr string, and read()/write() data to/from a Vstr string. Another big feature of the library is a POSIX and ISO 9899:1999 compliant printf() like function, which can also be extended with user supplied formatters that are gcc warning compatible.

The total API is over 280 functions, but laid out in a easy to remember manner, including data parsing functions, a non-destructive split() function, and conversion functions (among others).

Here are some key features of "Vstr string library":
  • a printf like function that is fully ISO 9899:1999 (C99) compliant, also having %m as standard and POSIX i18n parameter number modifiers. It also allows gcc warning compatible customer format specifiers (and includes pre-written custom format specifiers for ipv4 and ipv6 addresses, Vstr strings and more)
  • splitting of strings into parameter/record chunks (a la perl).
  • substituting data in a Vstr string
  • moving data from one Vstr string to another (or within a Vstr string).
  • comparing strings (without regard for case, or taking into account version information)
  • searching for data in strings (with or without regard for case).
  • counting spans of data in a string (the equivalent of strspn() in ISO C).
  • converting data in a Vstr (Ie. delete/substitute unprintable characters or making a Vstr string lowercase/uppercase).
  • parsing data from a Vstr string (Ie. numbers, or ipv4 addresses).
  • easily parsing and wrapping outgoing data in netstrings, for fast and simple (and hence less error prone) network communication
  • the ability to cache aspects of data about a Vstr string, to both simplify and speedup use of the string.
  • the ability to have empty data as part of the string, this is somewhat useful for representing file transfers as a string as you can represent the file data as empty data in the string.

    What's New in This Release:
  • Bytemap functions were added to accelerate parsing.
  • Custom formatters were sped up with a hash.
  • Workarounds were added for a hidden Linux UIO 2GB limit and GCC 4.x symbol aliasing brain damage.
  • Solaris build fixes were made along with a fix for a problem with loading zero-sized files with vstr_sc_*_file() and a couple of other minor problems.
    tags vstr string  the string  string library  regard for  without regard  for case  the ability  were added  empty data  data from  string the  warning compatible  iso 9899  

    Download Vstr string library 1.0.15


     http://www.and.org/vstr/1.0.15/vstr-1.0.15.tar.gz
     http://www.and.org/vstr/1.0.15/vstr-1.0.15.tar.bz2


    Authors software

    And-httpd 0.99.11 (by James Antill)
    And-httpd is an HTTP server that currently only maps URLs to files

    Timer_q 1.0.7 (by James Antill)
    Timer_q is a shared C library which implements multiple queues of timed events

    Vstr string library 1.0.15 (by James Antill)
    Vstr is a safe and fast string library for C


    Similar software

    Vstr string library 1.0.15 (by James Antill)
    Vstr is a safe and fast string library for C

    Math::XOR 0.02 (by Tyler MacDonald)
    Math::XOR is a package to handle XOR encryption of string buffers.

    SYNOPSIS

    use XOR;
    print xor_buf("hello", "w

    Better String Library 07222006 (by Paul Hsieh)
    Better String Library is an abstraction of a string data type which is superior to the C library char buffer string type and C++'

    my_string 1.1 (by Boulat Khakimov)
    my_string is an easy-to-use, fast string manipulation library

    And-httpd 0.99.11 (by James Antill)
    And-httpd is an HTTP server that currently only maps URLs to files

    Levenshtein 0.10.1 (by David Necas)

    Safe Strings 2.0.1 (by Pablo Yanez Trujillo)
    Safe Strings is a small C library that handles C strings in a safe way

    YASTR 1.0 (by Jesse Meyer)
    YASTR is a simple string library that mainly consists of functionality that I require in my programs.

    This entire library should b

    MIME::Base64 3.07 (by Gisle Aas)
    MIME::Base64 is an encoding and decoding of base64 strings.

    SYNOPSIS

    use MIME::Base64;

    $encoded = encode_base64('Aladdin:o

    Unicode.php 0.1.1 (by CentralNic Labs)
    Unicode.php provides some PHP classes for maniuplating Unicode data


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags