~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/tabs.C

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: tabs.C,v 1.9 2001/01/09 18:15:22 zeller Exp $ -*- C++ -*-
 
1
// $Id$ -*- C++ -*-
2
2
// Tabulator functions
3
3
 
4
4
// Copyright (C) 1997 Technische Universitaet Braunschweig, Germany.
27
27
// or send a mail to the DDD developers <ddd@gnu.org>.
28
28
 
29
29
char tabs_rcsid[] = 
30
 
    "$Id: tabs.C,v 1.9 2001/01/09 18:15:22 zeller Exp $";
31
 
 
32
 
#ifdef __GNUG__
33
 
#pragma implementation
34
 
#endif
 
30
    "$Id$";
35
31
 
36
32
#include "tabs.h"
37
33
 
47
43
        if (s[i] == '\t')
48
44
        {
49
45
            int offset = pos - i;
50
 
            s.at(i, 1) = replicate(string(' '), offset);
 
46
            s.at(i, 1) = replicate(' ', offset);
51
47
            return;
52
48
        }
53
49
    }