Spelling fixes
git-svn-id: http://pugixml.googlecode.com/svn/trunk@528 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
e618138b67
commit
b515d52061
@ -4199,7 +4199,7 @@ namespace pugi
|
|||||||
case status_file_not_found: return "File was not found";
|
case status_file_not_found: return "File was not found";
|
||||||
case status_io_error: return "Error reading from file/stream";
|
case status_io_error: return "Error reading from file/stream";
|
||||||
case status_out_of_memory: return "Could not allocate memory";
|
case status_out_of_memory: return "Could not allocate memory";
|
||||||
case status_internal_error: return "Internal error occured";
|
case status_internal_error: return "Internal error occurred";
|
||||||
|
|
||||||
case status_unrecognized_tag: return "Could not determine tag type";
|
case status_unrecognized_tag: return "Could not determine tag type";
|
||||||
|
|
||||||
|
|||||||
@ -106,7 +106,7 @@ namespace pugi
|
|||||||
typedef char char_t;
|
typedef char char_t;
|
||||||
|
|
||||||
# ifndef PUGIXML_NO_STL
|
# ifndef PUGIXML_NO_STL
|
||||||
// gcc3.4 has a bug which prevents string_t instantiation using char_t, so we have to use char type explicitly
|
// GCC 3.4 has a bug which prevents string_t instantiation using char_t, so we have to use char type explicitly
|
||||||
/// String type used for operations that work with STL string; depends on PUGIXML_WCHAR_MODE
|
/// String type used for operations that work with STL string; depends on PUGIXML_WCHAR_MODE
|
||||||
typedef std::basic_string<char, std::char_traits<char>, std::allocator<char> > string_t;
|
typedef std::basic_string<char, std::char_traits<char>, std::allocator<char> > string_t;
|
||||||
# endif
|
# endif
|
||||||
@ -268,7 +268,7 @@ namespace pugi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* These flags determine the encoding of input data for XML document. Default mode is encoding_auto,
|
* These flags determine the encoding of input data for XML document. Default mode is encoding_auto,
|
||||||
* which means that document encoding is autodetected from BOM and necessary encoding conversions are
|
* which means that document encoding is auto-detected from BOM and necessary encoding conversions are
|
||||||
* applied. You can override this mode by using any of the specific encodings.
|
* applied. You can override this mode by using any of the specific encodings.
|
||||||
*/
|
*/
|
||||||
enum encoding_t
|
enum encoding_t
|
||||||
@ -363,7 +363,7 @@ namespace pugi
|
|||||||
class PUGIXML_CLASS xpath_query
|
class PUGIXML_CLASS xpath_query
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
// Noncopyable semantics
|
// Non-copyable semantics
|
||||||
xpath_query(const xpath_query&);
|
xpath_query(const xpath_query&);
|
||||||
xpath_query& operator=(const xpath_query&);
|
xpath_query& operator=(const xpath_query&);
|
||||||
|
|
||||||
@ -374,7 +374,7 @@ namespace pugi
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Ctor from string with XPath expression.
|
* Constructor from string with XPath expression.
|
||||||
* Throws xpath_exception on compilation error, std::bad_alloc on out of memory error.
|
* Throws xpath_exception on compilation error, std::bad_alloc on out of memory error.
|
||||||
*
|
*
|
||||||
* \param query - string with XPath expression
|
* \param query - string with XPath expression
|
||||||
@ -382,7 +382,7 @@ namespace pugi
|
|||||||
explicit xpath_query(const char_t* query);
|
explicit xpath_query(const char_t* query);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dtor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
~xpath_query();
|
~xpath_query();
|
||||||
|
|
||||||
@ -446,7 +446,7 @@ namespace pugi
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Virtual dtor
|
* Virtual destructor
|
||||||
*/
|
*/
|
||||||
virtual ~xml_writer() {}
|
virtual ~xml_writer() {}
|
||||||
|
|
||||||
@ -527,12 +527,12 @@ namespace pugi
|
|||||||
typedef xml_attribute_struct* xml_attribute::*unspecified_bool_type;
|
typedef xml_attribute_struct* xml_attribute::*unspecified_bool_type;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// \internal Initializing ctor
|
/// \internal Initializing constructor
|
||||||
explicit xml_attribute(xml_attribute_struct* attr);
|
explicit xml_attribute(xml_attribute_struct* attr);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default ctor. Constructs an empty attribute.
|
* Default constructor. Constructs an empty attribute.
|
||||||
*/
|
*/
|
||||||
xml_attribute();
|
xml_attribute();
|
||||||
|
|
||||||
@ -788,7 +788,7 @@ namespace pugi
|
|||||||
typedef xml_node_struct* xml_node::*unspecified_bool_type;
|
typedef xml_node_struct* xml_node::*unspecified_bool_type;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/// \internal Initializing ctor
|
/// \internal Initializing constructor
|
||||||
explicit xml_node(xml_node_struct* p);
|
explicit xml_node(xml_node_struct* p);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -813,7 +813,7 @@ namespace pugi
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default ctor. Constructs an empty node.
|
* Default constructor. Constructs an empty node.
|
||||||
*/
|
*/
|
||||||
xml_node();
|
xml_node();
|
||||||
|
|
||||||
@ -1522,10 +1522,10 @@ namespace pugi
|
|||||||
xml_node _prev;
|
xml_node _prev;
|
||||||
xml_node _wrap;
|
xml_node _wrap;
|
||||||
|
|
||||||
/// \internal Initializing ctor
|
/// \internal Initializing constructor
|
||||||
explicit xml_node_iterator(xml_node_struct* ref);
|
explicit xml_node_iterator(xml_node_struct* ref);
|
||||||
|
|
||||||
/// \internal Initializing ctor (for past-the-end)
|
/// \internal Initializing constructor (for past-the-end)
|
||||||
xml_node_iterator(xml_node_struct* ref, xml_node_struct* prev);
|
xml_node_iterator(xml_node_struct* ref, xml_node_struct* prev);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -1542,12 +1542,12 @@ namespace pugi
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default ctor
|
* Default constructor
|
||||||
*/
|
*/
|
||||||
xml_node_iterator();
|
xml_node_iterator();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializing ctor
|
* Initializing constructor
|
||||||
*
|
*
|
||||||
* \param node - node that iterator will point at
|
* \param node - node that iterator will point at
|
||||||
*/
|
*/
|
||||||
@ -1579,7 +1579,7 @@ namespace pugi
|
|||||||
/**
|
/**
|
||||||
* Member access operator
|
* Member access operator
|
||||||
*
|
*
|
||||||
* \return poitner to the node iterator points at
|
* \return pointer to the node iterator points at
|
||||||
*/
|
*/
|
||||||
xml_node* operator->();
|
xml_node* operator->();
|
||||||
|
|
||||||
@ -1624,10 +1624,10 @@ namespace pugi
|
|||||||
xml_attribute _prev;
|
xml_attribute _prev;
|
||||||
xml_attribute _wrap;
|
xml_attribute _wrap;
|
||||||
|
|
||||||
/// \internal Initializing ctor
|
/// \internal Initializing constructor
|
||||||
explicit xml_attribute_iterator(xml_attribute_struct* ref);
|
explicit xml_attribute_iterator(xml_attribute_struct* ref);
|
||||||
|
|
||||||
/// \internal Initializing ctor (for past-the-end)
|
/// \internal Initializing constructor (for past-the-end)
|
||||||
xml_attribute_iterator(xml_attribute_struct* ref, xml_attribute_struct* prev);
|
xml_attribute_iterator(xml_attribute_struct* ref, xml_attribute_struct* prev);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -1644,12 +1644,12 @@ namespace pugi
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default ctor
|
* Default constructor
|
||||||
*/
|
*/
|
||||||
xml_attribute_iterator();
|
xml_attribute_iterator();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializing ctor
|
* Initializing constructor
|
||||||
*
|
*
|
||||||
* \param node - node that iterator will point at
|
* \param node - node that iterator will point at
|
||||||
*/
|
*/
|
||||||
@ -1681,7 +1681,7 @@ namespace pugi
|
|||||||
/**
|
/**
|
||||||
* Member access operator
|
* Member access operator
|
||||||
*
|
*
|
||||||
* \return poitner to the node iterator points at
|
* \return pointer to the node iterator points at
|
||||||
*/
|
*/
|
||||||
xml_attribute* operator->();
|
xml_attribute* operator->();
|
||||||
|
|
||||||
@ -1735,12 +1735,12 @@ namespace pugi
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default ctor
|
* Default constructor
|
||||||
*/
|
*/
|
||||||
xml_tree_walker();
|
xml_tree_walker();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Virtual dtor
|
* Virtual destructor
|
||||||
*/
|
*/
|
||||||
virtual ~xml_tree_walker();
|
virtual ~xml_tree_walker();
|
||||||
|
|
||||||
@ -1783,18 +1783,18 @@ namespace pugi
|
|||||||
status_file_not_found, ///< File was not found during load_file()
|
status_file_not_found, ///< File was not found during load_file()
|
||||||
status_io_error, ///< Error reading from file/stream
|
status_io_error, ///< Error reading from file/stream
|
||||||
status_out_of_memory, ///< Could not allocate memory
|
status_out_of_memory, ///< Could not allocate memory
|
||||||
status_internal_error, ///< Internal error occured
|
status_internal_error, ///< Internal error occurred
|
||||||
|
|
||||||
status_unrecognized_tag, ///< Parser could not determine tag type
|
status_unrecognized_tag, ///< Parser could not determine tag type
|
||||||
|
|
||||||
status_bad_pi, ///< Parsing error occured while parsing document declaration/processing instruction (<?...?>)
|
status_bad_pi, ///< Parsing error occurred while parsing document declaration/processing instruction (<?...?>)
|
||||||
status_bad_comment, ///< Parsing error occured while parsing comment (<!--...-->)
|
status_bad_comment, ///< Parsing error occurred while parsing comment (<!--...-->)
|
||||||
status_bad_cdata, ///< Parsing error occured while parsing CDATA section (<![CDATA[...]]>)
|
status_bad_cdata, ///< Parsing error occurred while parsing CDATA section (<![CDATA[...]]>)
|
||||||
status_bad_doctype, ///< Parsing error occured while parsing document type declaration
|
status_bad_doctype, ///< Parsing error occurred while parsing document type declaration
|
||||||
status_bad_pcdata, ///< Parsing error occured while parsing PCDATA section (>...<)
|
status_bad_pcdata, ///< Parsing error occurred while parsing PCDATA section (>...<)
|
||||||
status_bad_start_element, ///< Parsing error occured while parsing start element tag (<name ...>)
|
status_bad_start_element, ///< Parsing error occurred while parsing start element tag (<name ...>)
|
||||||
status_bad_attribute, ///< Parsing error occured while parsing element attribute
|
status_bad_attribute, ///< Parsing error occurred while parsing element attribute
|
||||||
status_bad_end_element, ///< Parsing error occured while parsing end element tag (</name>)
|
status_bad_end_element, ///< Parsing error occurred while parsing end element tag (</name>)
|
||||||
status_end_element_mismatch ///< There was a mismatch of start-end tags (closing tag had incorrect name, some tag was not closed or there was an excessive closing tag)
|
status_end_element_mismatch ///< There was a mismatch of start-end tags (closing tag had incorrect name, some tag was not closed or there was an excessive closing tag)
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1824,7 +1824,7 @@ namespace pugi
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Document class (DOM tree root).
|
* Document class (DOM tree root).
|
||||||
* This class has noncopyable semantics (private copy ctor/assignment operator).
|
* This class has non-copyable semantics (private copy constructor/assignment operator).
|
||||||
*/
|
*/
|
||||||
class PUGIXML_CLASS xml_document: public xml_node
|
class PUGIXML_CLASS xml_document: public xml_node
|
||||||
{
|
{
|
||||||
@ -1843,12 +1843,12 @@ namespace pugi
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default ctor, makes empty document
|
* Default constructor, makes empty document
|
||||||
*/
|
*/
|
||||||
xml_document();
|
xml_document();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dtor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
~xml_document();
|
~xml_document();
|
||||||
|
|
||||||
@ -1857,7 +1857,7 @@ namespace pugi
|
|||||||
/**
|
/**
|
||||||
* Load document from stream.
|
* Load document from stream.
|
||||||
*
|
*
|
||||||
* \param stream - stream with xml data
|
* \param stream - stream with XML data
|
||||||
* \param options - parsing options
|
* \param options - parsing options
|
||||||
* \param encoding - source data encoding
|
* \param encoding - source data encoding
|
||||||
* \return parsing result
|
* \return parsing result
|
||||||
@ -1867,7 +1867,7 @@ namespace pugi
|
|||||||
/**
|
/**
|
||||||
* Load document from stream.
|
* Load document from stream.
|
||||||
*
|
*
|
||||||
* \param stream - stream with xml data
|
* \param stream - stream with XML data
|
||||||
* \param options - parsing options
|
* \param options - parsing options
|
||||||
* \return parsing result
|
* \return parsing result
|
||||||
*/
|
*/
|
||||||
@ -1889,7 +1889,7 @@ namespace pugi
|
|||||||
* document's lifetime. Although, document does not gain ownership over the string, so you
|
* document's lifetime. Although, document does not gain ownership over the string, so you
|
||||||
* should free the memory occupied by it manually.
|
* should free the memory occupied by it manually.
|
||||||
*
|
*
|
||||||
* \param xmlstr - readwrite string with xml data
|
* \param xmlstr - read/write string with XML data
|
||||||
* \param options - parsing options
|
* \param options - parsing options
|
||||||
* \return parsing result
|
* \return parsing result
|
||||||
*
|
*
|
||||||
@ -1903,7 +1903,7 @@ namespace pugi
|
|||||||
* about it's lifetime.
|
* about it's lifetime.
|
||||||
* Call example: doc.parse(transfer_ownership_tag(), string, options);
|
* Call example: doc.parse(transfer_ownership_tag(), string, options);
|
||||||
*
|
*
|
||||||
* \param xmlstr - readwrite string with xml data
|
* \param xmlstr - read/write string with XML data
|
||||||
* \param options - parsing options
|
* \param options - parsing options
|
||||||
* \return parsing result
|
* \return parsing result
|
||||||
*
|
*
|
||||||
@ -2164,18 +2164,18 @@ namespace pugi
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Default ctor
|
* Default constructor
|
||||||
* Constructs empty set
|
* Constructs empty set
|
||||||
*/
|
*/
|
||||||
xpath_node_set();
|
xpath_node_set();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dtor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
~xpath_node_set();
|
~xpath_node_set();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy ctor
|
* Copy constructor
|
||||||
*
|
*
|
||||||
* \param ns - set to copy
|
* \param ns - set to copy
|
||||||
*/
|
*/
|
||||||
@ -2251,7 +2251,7 @@ namespace pugi
|
|||||||
|
|
||||||
#ifndef PUGIXML_NO_STL
|
#ifndef PUGIXML_NO_STL
|
||||||
/**
|
/**
|
||||||
* Convert wide string to utf8
|
* Convert wide string to UTF8
|
||||||
*
|
*
|
||||||
* \param str - input wide string string
|
* \param str - input wide string string
|
||||||
* \return output UTF8 string
|
* \return output UTF8 string
|
||||||
@ -2259,7 +2259,7 @@ namespace pugi
|
|||||||
std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML_FUNCTION as_utf8(const wchar_t* str);
|
std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML_FUNCTION as_utf8(const wchar_t* str);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert utf8 to wide string
|
* Convert UTF8 to wide string
|
||||||
*
|
*
|
||||||
* \param str - input UTF8 string
|
* \param str - input UTF8 string
|
||||||
* \return output wide string string
|
* \return output wide string string
|
||||||
@ -2269,7 +2269,7 @@ namespace pugi
|
|||||||
PUGIXML_DEPRECATED std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION as_utf16(const char* str);
|
PUGIXML_DEPRECATED std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION as_utf16(const char* str);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert utf8 to wide string
|
* Convert UTF8 to wide string
|
||||||
*
|
*
|
||||||
* \param str - input UTF8 string
|
* \param str - input UTF8 string
|
||||||
* \return output wide string string
|
* \return output wide string string
|
||||||
|
|||||||
@ -2086,7 +2086,7 @@ namespace pugi
|
|||||||
return !eval_node_set(c).empty();
|
return !eval_node_set(c).empty();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(!"Wrong expression for ret type boolean");
|
assert(!"Wrong expression for return type boolean");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2182,7 +2182,7 @@ namespace pugi
|
|||||||
return convert_string_to_number(eval_string(c).c_str());
|
return convert_string_to_number(eval_string(c).c_str());
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(!"Wrong expression for ret type number");
|
assert(!"Wrong expression for return type number");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2385,7 +2385,7 @@ namespace pugi
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(!"Wrong expression for ret type string");
|
assert(!"Wrong expression for return type string");
|
||||||
return string_t();
|
return string_t();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2506,7 +2506,7 @@ namespace pugi
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
assert(!"Wrong expression for ret type node set");
|
assert(!"Wrong expression for return type node set");
|
||||||
return xpath_node_set();
|
return xpath_node_set();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user