textutil.tcl

Go to the documentation of this file.
00001 /*  textutil.tcl --*/
00002 /* */
00003 /*  Utilities for manipulating strings, words, single lines,*/
00004 /*  paragraphs, ...*/
00005 /* */
00006 /*  Copyright (c) 2000      by Ajuba Solutions.*/
00007 /*  Copyright (c) 2000      by Eric Melski <ericm@ajubasolutions.com>*/
00008 /*  Copyright (c) 2002      by Joe English <jenglish@users.sourceforge.net>*/
00009 /*  Copyright (c) 2001-2006 by Andreas Kupries <andreas_kupries@users.sourceforge.net>*/
00010 /* */
00011 /*  See the file "license.terms" for information on usage and redistribution*/
00012 /*  of this file, and for a DISCLAIMER OF ALL WARRANTIES.*/
00013 /*  */
00014 /*  RCS: @(#) $Id: textutil.tcl,v 1.17 2006/09/21 06:46:24 andreas_kupries Exp $*/
00015 
00016 /*  ### ### ### ######### ######### #########*/
00017 /*  Requirements*/
00018 
00019 package require Tcl 8.2
00020 
00021 namespace ::textutil {}
00022 
00023 /*  ### ### ### ######### ######### #########*/
00024 /*  API implementation*/
00025 /*  All through sub-packages imported here.*/
00026 
00027 package require textutil::string
00028 package require textutil::repeat
00029 package require textutil::adjust
00030 package require textutil::split
00031 package require textutil::tabify
00032 package require textutil::trim
00033 
00034 namespace ::textutil {
00035     /*  Import the miscellaneous string command for public export*/
00036 
00037     namespace import -force string::chop string::tail
00038     namespace import -force string::cap string::uncap
00039     namespace import -force string::longestCommonPrefix
00040     namespace import -force string::longestCommonPrefixList
00041 
00042     /*  Import the repeat commands for public export*/
00043 
00044     namespace import -force repeat::strRepeat repeat::blank
00045 
00046     /*  Import the adjust commands for public export*/
00047 
00048     namespace import -force adjust::adjust adjust::indent adjust::undent
00049 
00050     /*  Import the split commands for public export*/
00051 
00052     namespace import -force split::splitx split::splitn
00053 
00054     /*  Import the trim commands for public export*/
00055 
00056     namespace import -force trim::trim trim::trimleft trim::trimright
00057     namespace import -force trim::trimPrefix trim::trimEmptyHeading
00058 
00059     /*  Import the tabify commands for public export*/
00060 
00061     namespace import -force tabify::tabify tabify::untabify
00062     namespace import -force tabify::tabify2 tabify::untabify2
00063 
00064     /*  Re-export all the imported commands*/
00065 
00066     namespace export chop tail cap uncap
00067     namespace export longestCommonPrefix longestCommonPrefixList
00068     namespace export strRepeat blank
00069     namespace export adjust indent undent
00070     namespace export splitx splitn
00071     namespace export trim trimleft trimright trimPrefix trimEmptyHeading
00072     namespace export tabify untabify tabify2 untabify2
00073 }
00074 
00075 
00076 /*  ### ### ### ######### ######### #########*/
00077 /*  Ready*/
00078 
00079 package provide textutil 0.7.1
00080 

Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1