OSSP   OpenPKG   net.sw   ePaperwork   
OSSP var OSSP - Unix Software Technologies
Title
News
Documents
Packages
   Tools
   Libraries
Support
Community
Related
Imprint

Variable Expansion

Abstract

OSSP var is a flexible, full-featured and fast variable construct expansion library. It supports a configurable variable construct syntax very similar to the style found in many scripting languages (like @name, ${name}, , etc.) and provides both simple scalar (${name}) and array (${name[index]}) expansion, plus optionally one or more post-operations on the expanded value (${name:op:op...}).

The supported post-operations are length determination, case conversion, defaults, postive and negative alternatives, sub-strings, regular expression based substitutions, character translations, and padding. Additionally, a meta-construct plus arithmetic expressions for index and range calculations allow (even nested) iterations over array variable expansions (..[..${name[#+1]}..]..). The actual variable value lookup is performed through a callback function, so OSSP var can expand arbitrary values.

Hint: There is also an ISO C++ derivative of the OSSP var library, named libvarexp. It is based on a development version of OSSP var and hence does not provide exactly the same amount of functionality. But it provides an ISO C++ API and so can be of interest to you if you are programming in ISO C++ (where OSSP var's ISO C API might be too boring for you).

Documentation

var(3) , var-config(1) .

Authors

Ralf S. Engelschall <rse@engelschall.com>
Peter Simons <simons@cryp.to>

Status

Stable Version:  1.1.3 (02-Oct-2005)   [Bug Reporting]
Genesis:  08-Mar-2002
Finished:

100%

Source

ChangeLog: http://cvs.ossp.org/pkg/lib/var/ChangeLog
Repository: http://cvs.ossp.org/pkg/lib/var/
Distribution: ftp://ftp.ossp.org/pkg/lib/var/

Distribution Files: Size: Time:
var-1.1.3.tar.gz     335.5KB   02-Oct-2005
var-1.1.2.tar.gz     327.6KB   31-Oct-2004
var-1.1.1.tar.gz     326.8KB   12-Sep-2004
var-1.1.0.tar.gz     322.9KB   04-Apr-2004
var-1.0.0.tar.gz     225.2KB   14-Feb-2003
var-0.9.0.tar.gz     213.2KB   08-Mar-2002

Donation

OSSP var is a sub-project of OSSP and hence a fully non-profit Open Source Software effort. The development on OSSP projects like OSSP var is supported by the contributions and sponsoring of individuals and companies. You can support OSSP var and the other OSSP projects yourself by contributing source fixes and enhancements or by donating money. To reward the efforts on OSSP var, just press the button to the right to perform a secure PayPal online money transaction to the OSSP project. Credit will be given to you on the OSSP Sponsors page once your donation was received.     
GNU pth
OSSP mm
OSSP ex
OSSP sa
OSSP fsl
OSSP var
OSSP val
OSSP xds
OSSP js
OSSP str
OSSP uuid
OSSP l2
OSSP al
OSSP sio
OSSP cfg
OSSP act
OSSP cache
OSSP path
OSSP proc
OSSP pcbe
OSSP res
OSSP hook
OSSP mux
OSSP err
OSSP popt
OSSP pcre
OSSP adns

Home:www.ossp.org
Repo:cvs.ossp.org
Dist:ftp.ossp.org