Revision 1131 trunk/src/tools99/string1.cpp

string1.cpp (revision 1131)
31 31
  return (tmp);
32 32
}
33 33

  
34
#if defined (USE_CONST)
35 34
adstring adstring::operator()(int i, int j) const
36 35
{
37 36
  if (i < 1 || i > (int) shape->size())
......
53 52
  }
54 53
  return (tmp);
55 54
}
56
#endif
57 55

  
58 56
adstring& adstring::operator=(const adstring & t)
59 57
{
......
115 113
  return ( ((unsigned char *)s)[i]);
116 114
}
117 115

  
118
#ifdef USE_CONST
119 116
const unsigned char& adstring::operator()(const int i) const
120 117
{
121 118
  if (i < 1 || i > (int) shape->size())
......
133 130
  }
134 131
  return (s[i]);
135 132
}
136
#endif
137 133

  
138
#ifdef USE_CONST
139 134
int adstring::operator==(const adstring& v) const
140 135
{
141 136
  int tmp = strcmp (* this, v);
142 137
  return (tmp == 0);
143 138
}
144
#endif
145 139

  
146 140
int adstring::operator==(const adstring& v)
147 141
{

Also available in: Unified diff