Statistics
| Revision:

root / trunk / src / tools99 / strcase2.cpp @ 1106

History | View | Annotate | Download (653 Bytes)

1
/*
2
 * $Id: strcase2.cpp 1106 2013-07-11 20:54:23Z johnoel $
3
 *
4
 * Author: John Sibert
5
 * Copyright (c) 2010-2012 ADMB Foundation
6
 */
7
#include "adstring.hpp"
8

    
9
void adstring_array::to_lower(void)
10
{
11
  int i1 = indexmin();
12
  int i2 = indexmax();
13
  for (int i=i1; i <= i2; i++)
14
  {
15
    (ptr[i])->to_lower();
16
    //(*this[i]).adstring::to_lower();
17
  }
18
}
19

    
20
void adstring_array::to_upper(void)
21
{
22
  int i1 = indexmin();
23
  int i2 = indexmax();
24
  for (int i=i1; i <= i2; i++)
25
  {
26
    (ptr[i])->to_upper();
27
  }
28
}
29

    
30
adstring_array to_lower(adstring_array& s)
31
{
32
  adstring_array t = s;
33
  t.to_lower();
34
  return(t);
35
}
36

    
37
adstring_array to_upper(adstring_array& s)
38
{
39
  adstring_array t = s;
40
  t.to_upper();
41
  return(t);
42
}