Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
516 B

  1. // String.cpp: implementation of the String class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "StringNode.h"
  5. #include <string.h>
  6. //////////////////////////////////////////////////////////////////////
  7. // Construction/Destruction
  8. //////////////////////////////////////////////////////////////////////
  9. StringNode::StringNode(TCHAR* s) : Object()
  10. {
  11. str = new TCHAR[wcslen(s)+1];
  12. if ( str ) wcscpy(str,s);
  13. }
  14. TCHAR* StringNode::Data() {
  15. return str;
  16. }