You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
[GDExtension] Expose some low level functions and String operators.
This commit is contained in:
@@ -354,10 +354,10 @@ void XMLParser::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_node_offset"), &XMLParser::get_node_offset);
|
||||
ClassDB::bind_method(D_METHOD("get_attribute_count"), &XMLParser::get_attribute_count);
|
||||
ClassDB::bind_method(D_METHOD("get_attribute_name", "idx"), &XMLParser::get_attribute_name);
|
||||
ClassDB::bind_method(D_METHOD("get_attribute_value", "idx"), (String(XMLParser::*)(int) const) & XMLParser::get_attribute_value);
|
||||
ClassDB::bind_method(D_METHOD("get_attribute_value", "idx"), &XMLParser::get_attribute_value);
|
||||
ClassDB::bind_method(D_METHOD("has_attribute", "name"), &XMLParser::has_attribute);
|
||||
ClassDB::bind_method(D_METHOD("get_named_attribute_value", "name"), (String(XMLParser::*)(const String &) const) & XMLParser::get_attribute_value);
|
||||
ClassDB::bind_method(D_METHOD("get_named_attribute_value_safe", "name"), &XMLParser::get_attribute_value_safe);
|
||||
ClassDB::bind_method(D_METHOD("get_named_attribute_value", "name"), &XMLParser::get_named_attribute_value);
|
||||
ClassDB::bind_method(D_METHOD("get_named_attribute_value_safe", "name"), &XMLParser::get_named_attribute_value_safe);
|
||||
ClassDB::bind_method(D_METHOD("is_empty"), &XMLParser::is_empty);
|
||||
ClassDB::bind_method(D_METHOD("get_current_line"), &XMLParser::get_current_line);
|
||||
ClassDB::bind_method(D_METHOD("skip_section"), &XMLParser::skip_section);
|
||||
@@ -422,7 +422,7 @@ bool XMLParser::has_attribute(const String &p_name) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
String XMLParser::get_attribute_value(const String &p_name) const {
|
||||
String XMLParser::get_named_attribute_value(const String &p_name) const {
|
||||
int idx = -1;
|
||||
for (int i = 0; i < attributes.size(); i++) {
|
||||
if (attributes[i].name == p_name) {
|
||||
@@ -436,7 +436,7 @@ String XMLParser::get_attribute_value(const String &p_name) const {
|
||||
return attributes[idx].value;
|
||||
}
|
||||
|
||||
String XMLParser::get_attribute_value_safe(const String &p_name) const {
|
||||
String XMLParser::get_named_attribute_value_safe(const String &p_name) const {
|
||||
int idx = -1;
|
||||
for (int i = 0; i < attributes.size(); i++) {
|
||||
if (attributes[i].name == p_name) {
|
||||
|
||||
Reference in New Issue
Block a user