| 5326 | } |
| 5327 | |
| 5328 | String String::get_extension() const { |
| 5329 | int pos = rfind_char('.'); |
| 5330 | if (pos < 0 || pos < MAX(rfind_char('/'), rfind_char('\\'))) { |
| 5331 | return ""; |
| 5332 | } |
| 5333 | |
| 5334 | return substr(pos + 1, length()); |
| 5335 | } |
| 5336 | |
| 5337 | String String::path_join(const String &p_file) const { |
| 5338 | if (is_empty()) { |