ADMB Documentation  11.5.3260
 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 #include <cassert>
00013 
00017 adstring operator+(const adstring& u, const unsigned char v)
00018 {
00019   return (u + adstring(v));
00020 }
00024 adstring operator+(const adstring& u, const char v)
00025 {
00026   return (u + adstring(v));
00027 }
00028 adstring operator+(const adstring& u, const unsigned char* v)
00029 {
00030   return (u + adstring(v));
00031 }
00032 adstring operator+(const adstring& u, const char* v)
00033 {
00034   return (u + adstring(v));
00035 }
00036 adstring operator+(const unsigned char* v, const adstring& u)
00037 {
00038   return (adstring(v) + u);
00039 }
00040 adstring operator+(const char* v, const adstring& u)
00041 {
00042   adstring vv=v;
00043   return (vv+u);
00044 }
00045 adstring operator+(const unsigned char u, const adstring& v)
00046 {
00047   adstring uu=u;
00048   return (uu + v);
00049 }