File: wvstdstring.h

package info (click to toggle)
wvstreams 4.6.1-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,420 kB
  • sloc: cpp: 64,196; ansic: 4,154; sh: 4,025; makefile: 546; perl: 402
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