head 1.11; access; symbols LMTP2NNTP_1_4_1:1.11 LMTP2NNTP_1_4_0:1.11 VAR_1_1_3:1.11 VAR_1_1_2:1.9 VAR_1_1_1:1.7 LMTP2NNTP_1_3_0:1.6 LMTP2NNTP_1_3b2:1.6 LMTP2NNTP_1_3b1:1.6 LMTP2NNTP_1_3a3:1.6 LMTP2NNTP_1_3a2:1.6 LMTP2NNTP_1_3a1:1.6 VAR_1_1_0:1.6 VAR_1_0_0:1.4 LMTP2NNTP_1_2_0:1.3 LMTP2NNTP_1_2b4:1.3 LMTP2NNTP_1_2b3:1.3 LMTP2NNTP_1_2b2:1.3 LMTP2NNTP_1_2b1:1.3 LMTP2NNTP_1_2a8:1.3 LMTP2NNTP_1_2a7:1.3 LMTP2NNTP_1_2a6:1.3 LMTP2NNTP_1_2a5:1.3 LMTP2NNTP_1_2a4:1.3 VAR_0_9_0:1.3 LMTP2NNTP_1_2a3:1.1; locks; strict; comment @# @; 1.11 date 2005.10.02.20.47.57; author rse; state Exp; branches; next 1.10; 1.10 date 2005.01.20.20.29.06; author rse; state Exp; branches; next 1.9; 1.9 date 2004.10.31.11.59.56; author rse; state Exp; branches; next 1.8; 1.8 date 2004.10.29.20.41.18; author rse; state Exp; branches; next 1.7; 1.7 date 2004.09.12.18.15.01; author rse; state Exp; branches; next 1.6; 1.6 date 2004.04.04.09.57.10; author rse; state Exp; branches; next 1.5; 1.5 date 2004.04.04.08.07.34; author rse; state Exp; branches; next 1.4; 1.4 date 2003.02.14.21.17.07; author rse; state Exp; branches; next 1.3; 1.3 date 2002.03.08.16.59.49; author rse; state Exp; branches; next 1.2; 1.2 date 2002.03.08.12.55.52; author rse; state Exp; branches; next 1.1; 1.1 date 2002.02.28.08.48.44; author rse; state Exp; branches; next ; desc @@ 1.11 log @bump version before release @ text @ _ ___ ____ ____ ____ |_|_ _ / _ \/ ___/ ___|| _ \ __ ____ _ _ __ _|_||_| | | | \___ \___ \| |_) | \ \ / / _` | '__| |_||_|_| | |_| |___) |__) | __/ \ V / (_| | | |_|_|_| \___/|____/____/|_| \_/ \__,_|_| OSSP var - Variable Expansion Version 1.1.3 (02-Oct-2005) 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}, $(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, positive 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. COPYRIGHT AND LICENSE Copyright (c) 2001-2005 Ralf S. Engelschall Copyright (c) 2001-2005 The OSSP Project Copyright (c) 2001-2005 Cable & Wireless This file is part of OSSP var, a variable expansion library which can be found at http://www.ossp.org/pkg/lib/var/. Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. HOME AND DOCUMENTATION The documentation and latest release can be found on o http://www.ossp.org/pkg/lib/var/ o ftp://ftp.ossp.org/pkg/lib/var/ @ 1.10 log @Bumped year in copyright messages for new year 2005 @ text @d8 1 a8 1 Version 1.1.2 (31-Oct-2004) @ 1.9 log @bump before release @ text @d30 3 a32 3 Copyright (c) 2001-2004 Ralf S. Engelschall Copyright (c) 2001-2004 The OSSP Project Copyright (c) 2001-2004 Cable & Wireless @ 1.8 log @more fixes @ text @d8 1 a8 1 Version 1.1.1 (12-Sep-2004) @ 1.7 log @bump before release @ text @d20 1 a20 1 conversion, defaults, postive and negative alternatives, sub-strings, @ 1.6 log @flush more pending changes after some more platform checks @ text @d8 1 a8 1 Version 1.1.0 (04-Apr-2004) @ 1.5 log @adjust copyrights @ text @d8 1 a8 1 Version 1.0.0 (14-Feb-2003) @ 1.4 log @final polishing for release 1.0.0 @ text @d30 3 a32 3 Copyright (c) 2001-2003 Ralf S. Engelschall Copyright (c) 2001-2003 The OSSP Project Copyright (c) 2001-2003 Cable & Wireless Deutschland @ 1.3 log @fix README @ text @d1 5 a5 4 __ ____ _ _ __ \ \ / / _` | '__| \ V / (_| | | \_/ \__,_|_| d8 1 a8 1 Version 0.9.0 (08-Mar-2002) d30 3 a32 3 Copyright (c) 2001-2002 Ralf S. Engelschall Copyright (c) 2001-2002 The OSSP Project Copyright (c) 2001-2002 Cable & Wireless Deutschland @ 1.2 log @polishing and copyright extension (add natural person) @ text @d7 1 a7 1 Version @ 1.1 log @URL fixing and additional documents @ text @d7 1 a7 1 Version 0.9.0 (28-Feb-2002) d25 1 a25 1 B can expand arbitrary values. d29 1 @