ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
string6.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
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 {
00014   return (u + adstring(v));
00015 }
00016 adstring operator+(const adstring& u, const char v)
00017 {
00018   return (u + adstring(v));
00019 }
00020 adstring operator+(const adstring& u, const unsigned char* v)
00021 {
00022   return (u + adstring(v));
00023 }
00024 adstring operator+(const adstring& u, const char* v)
00025 {
00026   return (u + adstring(v));
00027 }
00028 adstring operator+(const unsigned char* v, const adstring& u)
00029 {
00030   return (adstring(v) + u);
00031 }
00032 adstring operator+(const char* v, const adstring& u)
00033 {
00034   adstring vv=v;
00035   return (vv+u);
00036 }
00037 adstring operator+(const unsigned char u, const adstring& v)
00038 {
00039   adstring uu=u;
00040   return (uu + v);
00041 }