~ubuntu-branches/ubuntu/maverick/speech-tools/maverick

« back to all changes in this revision

Viewing changes to include/EST_String.h

  • Committer: Bazaar Package Importer
  • Author(s): Kumar Appaiah, Kartik Mistry, Kumar Appaiah
  • Date: 2010-07-17 11:32:04 UTC
  • mfrom: (3.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100717113204-mnse3jo236j107q8
Tags: 1:2.0.95~beta-1
[ Kartik Mistry ]
* debian/control:
  + [Lintian] Added missing ${misc:Depends}
  + Updated Standards-Version to 3.8.4 (no changes needed)
* debian/patches/const_char.diff:
  + Added missing patch header
* Removed unused patch invalid_const_char_conversion_fixes.diff

[ Kumar Appaiah ]
* New upstream release.
* Standards Version is now 3.9.0 (No changes needed)
* Update debian/rules to specify version numbers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
  * @see string_example
65
65
  * @author Alan W Black <awb@cstr.ed.ac.uk>
66
66
  * @author Richard Caley <rjc@cstr.ed.ac.uk>
67
 
  * @version $Id: EST_String.h,v 1.6 2006/07/08 13:03:36 awb Exp $
 
67
  * @version $Id: EST_String.h,v 1.7 2009/07/03 17:13:56 awb Exp $
68
68
  */
69
69
 
70
70
class EST_String {
346
346
 
347
347
    /// Find a match of the regular expression.
348
348
    int search(EST_Regex &re, int &mlen, int pos=0, int *starts=NULL, int *ends=NULL) const
349
 
        { int start, end;
 
349
        { int start=0, end=0;
350
350
        if (locate(re, pos, start, end, starts, ends))
351
351
        { mlen=end-start; return start; }
352
352
        return -1;