File: wvstdstring.h

package info (click to toggle)
wvstreams 4.4.1-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,148 kB
  • ctags: 8,556
  • sloc: cpp: 64,151; ansic: 8,188; sh: 5,994; makefile: 498; perl: 277; tcl: 114
file content (33 lines) | stat: -rw-r--r-- 718 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* -*- Mode: C++ -*-
 * Worldvisions Weaver Software:
 *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
 *
 * Some helper functions for WvString so it's more easily interchangeable
 * with std::string.  These functions are in a separate include file so we
 * don't need a separate library *and* we don't need to #include <string> in
 * wvstring.h.
 */
#ifndef __WVSTDSTRING_H
#define __WVSTDSTRING_H

#include "wvstring.h"

inline WvFastString::WvFastString(const std::string &s)
{
    construct(s.c_str());
}


inline WvString::WvString(const std::string &s)
{
    construct(s.c_str());
}

#if 0
inline WvFastString::operator std::string() const
{
    return cstr();
}
#endif

#endif // __WVSTDSTRING_H