ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
strcase2.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: John Sibert
00005  * Copyright (c) 2010-2012 ADMB Foundation
00006  */
00007 #include "adstring.hpp"
00008 
00009 void adstring_array::to_lower(void)
00010 {
00011   int i1 = indexmin();
00012   int i2 = indexmax();
00013   for (int i=i1; i <= i2; i++)
00014   {
00015     (ptr[i])->to_lower();
00016     //(*this[i]).adstring::to_lower();
00017   }
00018 }
00019 
00020 void adstring_array::to_upper(void)
00021 {
00022   int i1 = indexmin();
00023   int i2 = indexmax();
00024   for (int i=i1; i <= i2; i++)
00025   {
00026     (ptr[i])->to_upper();
00027   }
00028 }
00029 
00030 adstring_array to_lower(adstring_array& s)
00031 {
00032   adstring_array t = s;
00033   t.to_lower();
00034   return(t);
00035 }
00036 
00037 adstring_array to_upper(adstring_array& s)
00038 {
00039   adstring_array t = s;
00040   t.to_upper();
00041   return(t);
00042 }