ADMB Documentation  11.1.2192
 All Classes Files Functions Variables Typedefs Friends Defines
string6.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: string6.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 //#include <adstring.hpp>
00008 #include <fvar.hpp>
00009 #include <string.h>
00010 #include <stdlib.h>
00011 
00012 adstring operator+(const adstring& u, const unsigned char v)
00013     { return (u + adstring(  v)); }
00014 adstring operator+(const adstring& u, const signed char v)
00015     { return (u + adstring(v)); }
00016 adstring operator+(const adstring& u, const unsigned char* v)
00017     { return (u + adstring( (const char *) v)); }
00018 adstring operator+(const adstring& u, const signed char* v)
00019     { return (u + adstring((const char *) v)); }
00020 
00021 adstring operator+(const unsigned char* v, const adstring& u)
00022     { return (adstring( (const char *) v)+u); }
00023 
00024 adstring operator+(const char* v, const adstring& u)
00025   {
00026       adstring vv=v;
00027       return (vv+u);
00028   }
00029 
00030 adstring operator+(const unsigned char u, const adstring& v)
00031   {
00032     adstring uu=u;
00033     return (uu + v);
00034   }