Renamed name parameter in load_file/save_file to path
git-svn-id: http://pugixml.googlecode.com/svn/trunk@540 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
e4ac1d9328
commit
c7a8f498a7
@ -4328,11 +4328,11 @@ namespace pugi
|
|||||||
return load_buffer_inplace_own(xmlstr, strlen(xmlstr), options, encoding_utf8);
|
return load_buffer_inplace_own(xmlstr, strlen(xmlstr), options, encoding_utf8);
|
||||||
}
|
}
|
||||||
|
|
||||||
xml_parse_result xml_document::load_file(const char* name, unsigned int options, encoding_t encoding)
|
xml_parse_result xml_document::load_file(const char* path, unsigned int options, encoding_t encoding)
|
||||||
{
|
{
|
||||||
create();
|
create();
|
||||||
|
|
||||||
FILE* file = fopen(name, "rb");
|
FILE* file = fopen(path, "rb");
|
||||||
if (!file) return make_parse_result(status_file_not_found);
|
if (!file) return make_parse_result(status_file_not_found);
|
||||||
|
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
@ -4439,9 +4439,9 @@ namespace pugi
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool xml_document::save_file(const char* name, const char_t* indent, unsigned int flags, encoding_t encoding) const
|
bool xml_document::save_file(const char* path, const char_t* indent, unsigned int flags, encoding_t encoding) const
|
||||||
{
|
{
|
||||||
FILE* file = fopen(name, "wb");
|
FILE* file = fopen(path, "wb");
|
||||||
if (!file) return false;
|
if (!file) return false;
|
||||||
|
|
||||||
xml_writer_file writer(file);
|
xml_writer_file writer(file);
|
||||||
|
|||||||
@ -1914,12 +1914,12 @@ namespace pugi
|
|||||||
/**
|
/**
|
||||||
* Load document from file
|
* Load document from file
|
||||||
*
|
*
|
||||||
* \param name - file name
|
* \param path - file path
|
||||||
* \param options - parsing options
|
* \param options - parsing options
|
||||||
* \param encoding - source data encoding
|
* \param encoding - source data encoding
|
||||||
* \return parsing result
|
* \return parsing result
|
||||||
*/
|
*/
|
||||||
xml_parse_result load_file(const char* name, unsigned int options = parse_default, encoding_t encoding = encoding_auto);
|
xml_parse_result load_file(const char* path, unsigned int options = parse_default, encoding_t encoding = encoding_auto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load document from buffer
|
* Load document from buffer
|
||||||
@ -1993,13 +1993,13 @@ namespace pugi
|
|||||||
/**
|
/**
|
||||||
* Save XML to file
|
* Save XML to file
|
||||||
*
|
*
|
||||||
* \param name - file name
|
* \param path - file path
|
||||||
* \param indent - indentation string
|
* \param indent - indentation string
|
||||||
* \param flags - formatting flags
|
* \param flags - formatting flags
|
||||||
* \param encoding - encoding used for writing
|
* \param encoding - encoding used for writing
|
||||||
* \return success flag
|
* \return success flag
|
||||||
*/
|
*/
|
||||||
bool save_file(const char* name, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, encoding_t encoding = encoding_auto) const;
|
bool save_file(const char* path, const char_t* indent = PUGIXML_TEXT("\t"), unsigned int flags = format_default, encoding_t encoding = encoding_auto) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute document order for the whole tree
|
* Compute document order for the whole tree
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user