00001 // Utilities.h: some commonly used functions. 00002 // Author: Xiaoyi Ma, Steven Bird 00003 // Copyright (C) 2001 Linguistic Data Consortium, U Penn. 00004 // Web: http://www.ldc.upenn.edu/; Email: ldc@ldc.upenn.edu 00005 // For license information, see the file `LICENSE' included 00006 // with the distribution. 00007 00008 00009 #ifndef Utilities_h 00010 #define Utilities_h 00011 00012 #include <string> 00013 #include <vector> 00014 00015 using namespace std; 00016 00023 class Utilities { 00024 public: 00048 static string entityReferences(const string& s); 00050 static string trim(const string& s); 00052 static vector<string> splitString(const string& s, char c); 00054 static string escapeChar(const string& s, char c); 00055 00056 }; 00057 00058 #endif
1.2.7 written by Dimitri van Heesch,
 © 1997-2001