~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Kernel/Types/string.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-04-23 07:09:40 UTC
  • mfrom: (4.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100423070940-72mjdmdepfgrvo8f
Tags: 1:1.0.7.4-2
Re-upload, former upload failed with wrong diff.gz perhaps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
}
55
55
 
56
56
string::string (const char* a) {
57
 
  register int i, n=strlen(a);
 
57
  int i, n=strlen(a);
58
58
  rep= tm_new<string_rep> (n);
59
59
  for (i=0; i<n; i++)
60
60
    rep->a[i]=a[i];
172
172
  return true;
173
173
}
174
174
 
175
 
ostream&
176
 
operator << (ostream& out, string a) {
 
175
tm_ostream&
 
176
operator << (tm_ostream& out, string a) {
177
177
  int i, n=N(a);
178
178
  if (n==0) return out;
179
179
  for (i=0; i<n; i++) out << a[i];