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

« back to all changes in this revision

Viewing changes to src/System/Language/dictionary.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-04-23 07:09:40 UTC
  • mfrom: (1.2.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20100423070940-juy8n05xs1b6au8i
Re-upload, former upload failed with wrong diff.gz perhaps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
  for (i=0; i<n; tm_char_forwards (s, i))
92
92
    if ((!is_iso_alpha (s[i])) && (s[i]!=' ')) break;
93
93
  if (i<n) return translate (s (0, i)) * translate (s (i, n));
94
 
  for (i=0; i<n && s[i]==' '; i++);
 
94
  for (i=0; i<n && s[i]==' '; i++) {}
95
95
  if (i==n) return s;
96
96
  if (i>0) return s (0, i) * translate (s (i, n));
97
 
  for (i=n; i>0 && s[i-1]==' '; i--);
 
97
  for (i=n; i>0 && s[i-1]==' '; i--) {}
98
98
  if (i<n) return translate (s (0, i)) * s (i, n);
99
99
 
100
100
  bool flag= is_upcase (s[0]);