CgiUtils.h   CgiUtils.h 
/* -*-mode:c++; c-file-style: "gnu";-*- */ /* -*-mode:c++; c-file-style: "gnu";-*- */
/* /*
* $Id: CgiUtils.h,v 1.14 2007/07/02 18:48:17 sebdiaz Exp $ * $Id: CgiUtils.h,v 1.15 2008/01/19 15:43:57 sebdiaz Exp $
* *
* Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org> * Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
* 2007 Sebastien DIAZ <sebastien.diaz@gmail.com> * 2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
* Part of the GNU cgicc library, http://www.gnu.org/software/cgicc * Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either * License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version. * version 3 of the License, or (at your option) any later version.
* *
skipping to change at line 68 skipping to change at line 68
/*! /*!
* \brief Compare two strings for equality, ignoring case. * \brief Compare two strings for equality, ignoring case.
* *
* For case-sensitive comparison, use (s1 == s2); * For case-sensitive comparison, use (s1 == s2);
* \param s1 The first string to compare * \param s1 The first string to compare
* \param s2 The second string to compare * \param s2 The second string to compare
* \param n The number of characters to compare. * \param n The number of characters to compare.
* \return \c true if the strings are equal, \c false if they are not * \return \c true if the strings are equal, \c false if they are not
*/ */
CGICC_API bool CGICC_API bool
stringsAreEqual(const std::string& s1, stringsAreEqual(const std::string& ss1,
const std::string& s2, const std::string& ss2,
size_t n); size_t n);
/*! /*!
* \brief Convert an ASCII string to a URL-safe string. * \brief Convert an ASCII string to a URL-safe string.
* *
* For example, '!' is converted to "%21" and ' ' is converted to '+'. * For example, '!' is converted to "%21" and ' ' is converted to '+'.
* \param src The src string containing the characters to encode * \param src The src string containing the characters to encode
* \return The converted string * \return The converted string
*/ */
CGICC_API std::string CGICC_API std::string
skipping to change at line 157 skipping to change at line 157
/*! /*!
* \brief Extract a substring contained between a separator. * \brief Extract a substring contained between a separator.
* *
* This function is used internally to decode \c multipart/form-data * This function is used internally to decode \c multipart/form-data
* \param data The data to search. * \param data The data to search.
* \param separator The separator. * \param separator The separator.
* \return The substring between the separator. * \return The substring between the separator.
*/ */
inline std::string inline std::string
extractBetween(const std::string& data, extractBetween(const std::string& datas,
const std::string& separator) const std::string& separators)
{ return extractBetween(data, separator, separator); } { return extractBetween(datas, separators, separators); }
/*! /*!
* \brief Write a string to an ostream. * \brief Write a string to an ostream.
* *
* This function is used internally for saving environments. * This function is used internally for saving environments.
* \param out The ostream to which to write. * \param out The ostream to which to write.
* \param s The string to write. * \param s The string to write.
*/ */
void void
writeString(std::ostream& out, writeString(std::ostream& out,
 End of changes. 3 change blocks. 
6 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/