SqlStringAscii.h

Go to the documentation of this file.
00001 /*
00002 // $Id: //open/dev/fennel/calculator/SqlStringAscii.h#3 $
00003 // Fennel is a library of data storage and processing components.
00004 // Copyright (C) 2005-2009 The Eigenbase Project
00005 // Copyright (C) 2004-2009 SQLstream, Inc.
00006 // Copyright (C) 2009-2009 LucidEra, Inc.
00007 //
00008 // This program is free software; you can redistribute it and/or modify it
00009 // under the terms of the GNU General Public License as published by the Free
00010 // Software Foundation; either version 2 of the License, or (at your option)
00011 // any later version approved by The Eigenbase Project.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // You should have received a copy of the GNU General Public License
00019 // along with this program; if not, write to the Free Software
00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 //
00022 // SqlString
00023 //
00024 // An ascii string library that adheres to the SQL99 standard definitions
00025 */
00026 #ifndef Fennel_SqlStringAscii_Included
00027 #define Fennel_SqlStringAscii_Included
00028 
00029 FENNEL_BEGIN_NAMESPACE
00030 
00051 //
00052 //  TODO: Does not implement an implementation defined max length.
00053 int FENNEL_CALCULATOR_EXPORT
00054 SqlStrCat_Ascii(
00055     char* dest,
00056     int destStorageBytes,
00057     int destLenBytes,
00058     char const * const str,
00059     int strLenBytes);
00060 
00081 //
00082 //  TODO: Does not implement an implementation defined max length.
00083 int FENNEL_CALCULATOR_EXPORT
00084 SqlStrCat_Ascii(
00085     char* dest,
00086     int destStorageBytes,
00087     char const * const str1,
00088     int str1LenBytes,
00089     char const * const str2,
00090     int str2LenBytes);
00091 
00095 int FENNEL_CALCULATOR_EXPORT
00096 SqlStrCmp_Ascii_Fix(
00097     char const * const str1,
00098     int str1LenBytes,
00099     char const * const str2,
00100     int str2LenBytes,
00101     char trimchar = ' ');
00102 
00106 int FENNEL_CALCULATOR_EXPORT
00107 SqlStrCmp_Ascii_Var(
00108     char const * const str1,
00109     int str1LenBytes,
00110     char const * const str2,
00111     int str2LenBytes);
00112 
00116 int FENNEL_CALCULATOR_EXPORT
00117 SqlStrLenBit_Ascii(
00118     char const * const str,
00119     int strLenBytes);
00120 
00124 int FENNEL_CALCULATOR_EXPORT
00125 SqlStrLenChar_Ascii(
00126     char const * const str,
00127     int strLenBytes);
00128 
00132 int FENNEL_CALCULATOR_EXPORT
00133 SqlStrLenOct_Ascii(
00134     char const * const str,
00135     int strLenBytes);
00136 
00145 int FENNEL_CALCULATOR_EXPORT
00146 SqlStrOverlay_Ascii(
00147     char* dest,
00148     int destStorageBytes,
00149     char const * const str,
00150     int strLenBytes,
00151     char const * const over,
00152     int overLenBytes,
00153     int startChar,
00154     int lengthChar,
00155     int lenSpecified);
00156 
00161 int FENNEL_CALCULATOR_EXPORT
00162 SqlStrPos_Ascii(
00163     char const * const str,
00164     int strLenBytes,
00165     char const * const find,
00166     int findLenBytes);
00167 
00178 int FENNEL_CALCULATOR_EXPORT
00179 SqlStrSubStr_Ascii(
00180     char const ** dest,
00181     int destStorageBytes,
00182     char const * const str,
00183     int strLenBytes,
00184     int subStartChar,
00185     int subLenChar,
00186     int subLenBytesSpecified);
00187 
00189 int FENNEL_CALCULATOR_EXPORT
00190 SqlStrToLower_Ascii(
00191     char* dest,
00192     int destStorageBytes,
00193     char const * const src,
00194     int srcLenBytes);
00195 
00197 int FENNEL_CALCULATOR_EXPORT
00198 SqlStrToUpper_Ascii(
00199     char* dest,
00200     int destStorageBytes,
00201     char const * const src,
00202     int srcLenBytes);
00203 
00208 int FENNEL_CALCULATOR_EXPORT
00209 SqlStrTrim_Ascii(
00210     char* dest,
00211     int destStorageBytes,
00212     char const * const str,
00213     int strLenBytes,
00214     int trimLeft,
00215     int trimRight,
00216     char trimchar = ' ');
00217 
00226 int FENNEL_CALCULATOR_EXPORT
00227 SqlStrTrim_Ascii(
00228     char const ** result,
00229     char const * const str,
00230     int strLenBytes,
00231     int trimLeft,
00232     int trimRight,
00233     char trimchar = ' ');
00234 
00235 
00236 FENNEL_END_NAMESPACE
00237 
00238 #endif
00239 
00240 // End SqlStringAscii.h
00241 

Generated on Mon Jun 22 04:00:17 2009 for Fennel by  doxygen 1.5.1