Sfoglia il codice sorgente

Document String's 'is_valid_filename()'

Michael Alexsander Silva Dias 6 anni fa
parent
commit
70499faff8
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      doc/classes/String.xml

+ 8 - 0
doc/classes/String.xml

@@ -432,6 +432,14 @@
 				Returns [code]true[/code] if this string is a subsequence of the given string, without considering case.
 			</description>
 		</method>
+		<method name="is_valid_filename">
+			<return type="bool">
+			</return>
+			<description>
+				Returns [code]true[/code] if this string is free from characters that aren't allowed in file names, those being:
+				[code]: / \ ? * " | % < >[/code]
+			</description>
+		</method>
 		<method name="is_valid_float">
 			<return type="bool">
 			</return>