// Copyright (C) 2004 Johnny Mariethoz (Johnny.Mariethoz@idiap.ch) // and Samy Bengio (bengio@idiap.ch) // and Ronan Collobert (collober@iro.umontreal.ca) // and Christos Dimitrakakis (dimitrak@idiap.ch) // // This file is based on code from Torch. Release II. /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef STRING_UTILS_INC #define STRING_UTILS_INC #include #include #include #include /** \file string_utils.h Some simple functions for string operations. \author Samy Bengio (bengio@idiap.ch) \author Johnny Mariethoz (Johnny.Mariethoz@idiap.ch) \author Ronan Collobert (collober@iro.umontreal.ca) \author Christos Dimitrakakis (dimitrak@idiap.ch) */ //@{ /** \brief The StringBuffer structure stores buffers of strings */ typedef struct StringBuffer_ { char* c; ///