// Filename: string
// Created by:  drose (12May00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license.  You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////

// This file, and all the other files in this directory, aren't
// intended to be compiled--they're just parsed by CPPParser (and
// interrogate) in lieu of the actual system headers, to generate the
// interrogate database.

#ifndef STRING_H
#define STRING_H

#include <stdtypedefs.h>

template<class ctype>
class basic_string {
public:
  basic_string();
  basic_string(const basic_string &copy);
  void operator = (const basic_string &copy);
  basic_string(const ctype *string);
  ~basic_string();

  const ctype *c_str() const;
  size_t length() const;

  ctype at(size_t pos) const;
  ctype operator[](size_t pos) const;
  ctype &operator[](size_t pos);
};

typedef basic_string<char> string;
typedef basic_string<wchar_t> wstring;

#endif
