Przeglądaj źródła

Document String's 'is_valid_filename()'

Michael Alexsander Silva Dias 6 lat temu
rodzic
commit
70499faff8
1 zmienionych plików z 8 dodań i 0 usunięć
  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.
 				Returns [code]true[/code] if this string is a subsequence of the given string, without considering case.
 			</description>
 			</description>
 		</method>
 		</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">
 		<method name="is_valid_float">
 			<return type="bool">
 			<return type="bool">
 			</return>
 			</return>