| 5335 | } |
| 5336 | |
| 5337 | String String::path_join(const String &p_file) const { |
| 5338 | if (is_empty()) { |
| 5339 | return p_file; |
| 5340 | } |
| 5341 | if (operator[](length() - 1) == '/' || (p_file.size() > 0 && p_file.operator[](0) == '/')) { |
| 5342 | return *this + p_file; |
| 5343 | } |
| 5344 | return *this + "/" + p_file; |
| 5345 | } |
| 5346 | |
| 5347 | String String::property_name_encode() const { |
| 5348 | const char32_t *cstr = get_data(); |