Revision 1106 trunk/src/tools99/adstring.hpp

adstring.hpp (revision 1106)
2 2
 * $Id$
3 3
 *
4 4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California 
5
 * Copyright (c) 2008-2012 Regents of the University of California
6 6
 *
7 7
 * ADModelbuilder and associated libraries and documentations are
8 8
 * provided under the general terms of the "New BSD" license
9
 * 
9
 *
10 10
 * License:
11
 * 
11
 *
12 12
 * Redistribution and use in source and binary forms, with or without
13 13
 * modification, are permitted provided that the following conditions are
14 14
 * met:
15
 * 
15
 *
16 16
 * 1. Redistributions of source code must retain the above copyright
17 17
 * notice, this list of conditions and the following disclaimer.
18
 * 
18
 *
19 19
 * 2.  Redistributions in binary form must reproduce the above copyright
20 20
 * notice, this list of conditions and the following disclaimer in the
21 21
 * documentation and/or other materials provided with the distribution.
22
 * 
22
 *
23 23
 * 3.  Neither the name of the  University of California, Otter Research,
24 24
 * nor the ADMB Foundation nor the names of its contributors may be used
25 25
 * to endorse or promote products derived from this software without
26 26
 * specific prior written permission.
27
 * 
27
 *
28 28
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 29
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 30
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
......
64 64
  #undef HERE
65 65
#endif
66 66
//#define HERE cout << "reached line " << __LINE__ << " in " << __FILE__ << endl;
67
#define HERE 
67
#define HERE
68 68

  
69 69
#define USE_CONST
70 70
#ifdef USE_CONST
71 71
  #define _CONST const
72 72
#else
73
  #define _CONST 
73
  #define _CONST
74 74
#endif
75 75
class adstring_shape
76 76
{
......
130 130
  }
131 131
#endif
132 132

  
133
  friend adstring operator+(const adstring &u, const adstring &v); 
133
  friend adstring operator+(const adstring &u, const adstring &v);
134 134

  
135 135
  friend adstring operator+(const adstring &u, const unsigned char v);
136 136

  
......
164 164

  
165 165
  int operator==(const adstring &u) const;
166 166
  adstring operator()(int i, int j) const;
167
  #endif 
167
  #endif
168 168

  
169 169
  adstring& operator=(const adstring &t);
170 170
  adstring& operator=(const char t);
......
200 200
int val(const adstring& s);
201 201

  
202 202
class cifstream;
203
 
203

  
204 204
class line_adstring : public adstring
205 205
{
206 206
public:
......
221 221
//adstring operator+(const char u, const char v)
222 222
//  { return (adstring(u) + adstring(v) ); }
223 223
#if defined(__BORLANDC__)
224
#  if (__BORLANDC__  <= 0x0520) 
224
#  if (__BORLANDC__  <= 0x0520)
225 225
     class ifstream;
226 226
     class ofstream;
227 227
     class cifstream;
......
242 242
  ~adstring_array();
243 243
  adstring_array(int min,int max);
244 244
  void allocate(int min,int max);
245
  adstring_array(void); 
245
  adstring_array(void);
246 246
  #ifdef USE_CONST
247 247
  const adstring& operator[](int i) const;
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff