Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Portable/pmp_wifi/XMLString.cpp
2024-09-24 14:54:57 +02:00

49 lines
838 B
C++

/** (c) Nullsoft, Inc. C O N F I D E N T I A L
** Filename:
** Project:
** Description:
** Author: Ben Allison benski@nullsoft.com
** Created:
**/
#include "XMLString.h"
#include <strsafe.h>
XMLString::XMLString()
{
data[0]=0;
}
void XMLString::Reset()
{
data[0]=0;
}
const wchar_t *XMLString::GetString()
{
return data;
}
void XMLString::StartTag(const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params)
{
data[0]=0;
}
void XMLString::TextHandler(const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *str)
{
StringCchCatW(data, XMLSTRING_SIZE, str);
}
void XMLString::ManualSet(const wchar_t *string)
{
StringCchCatW(data, XMLSTRING_SIZE, string);
}
#define CBCLASS XMLString
START_DISPATCH;
VCB(ONSTARTELEMENT, StartTag)
VCB(ONCHARDATA, TextHandler)
END_DISPATCH;
#undef CBCLASS