00001 /* 00002 * See the dyninst/COPYRIGHT file for copyright information. 00003 * 00004 * We provide the Paradyn Tools (below described as "Paradyn") 00005 * on an AS IS basis, and do not warrant its validity or performance. 00006 * We reserve the right to update, modify, or discontinue this 00007 * software at any time. We shall have no obligation to supply such 00008 * updates or modifications or any other form of support to you. 00009 * 00010 * By your use of Paradyn, you understand and agree that we (or any 00011 * other person or entity with proprietary rights in Paradyn) are 00012 * under no obligation to provide either maintenance services, 00013 * update services, notices of latent defects, or correction of 00014 * defects for Paradyn. 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Lesser General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2.1 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Lesser General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Lesser General Public 00027 * License along with this library; if not, write to the Free Software 00028 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00029 */ 00030 00031 /************************************************************************ 00032 * String.h: a simple character string class. 00033 * $Id: String.h,v 1.35 2008/06/11 22:48:15 legendre Exp $ 00034 ************************************************************************/ 00035 00036 #if !defined(_String_h_) 00037 #define _String_h_ 00038 00039 bool regexEquiv(const char *str_, const char *s, bool checkCase ); 00040 00041 #include <string> 00042 const std::string nullString(""); 00043 bool prefixed_by(std::string &haystack, std::string &prefix); 00044 bool prefixed_by(std::string &haystack, const char *prefix); 00045 bool suffixed_by(std::string &haystack, std::string &suffix); 00046 bool suffixed_by(std::string &haystack, const char *suffix); 00047 #endif /* !defined(_String_h_) */
1.6.1