Statistics
| Revision:

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

History | View | Annotate | Download (934 Bytes)

1
/*
2
 * $Id: string6.cpp 1106 2013-07-11 20:54:23Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
//#include <adstring.hpp>
8
#include <fvar.hpp>
9
#include <string.h>
10
#include <stdlib.h>
11

    
12
adstring operator+(const adstring& u, const unsigned char v)
13
    { return (u + adstring(  v)); }
14
adstring operator+(const adstring& u, const signed char v)
15
    { return (u + adstring(v)); }
16
adstring operator+(const adstring& u, const unsigned char* v)
17
    { return (u + adstring( (const char *) v)); }
18
adstring operator+(const adstring& u, const signed char* v)
19
    { return (u + adstring((const char *) v)); }
20

    
21
adstring operator+(const unsigned char* v, const adstring& u)
22
    { return (adstring( (const char *) v)+u); }
23

    
24
adstring operator+(const char* v, const adstring& u)
25
  {
26
      adstring vv=v;
27
      return (vv+u);
28
  }
29

    
30
adstring operator+(const unsigned char u, const adstring& v)
31
  {
32
    adstring uu=u;
33
    return (uu + v);
34
  }