Explorar o código

Document String's 'is_valid_filename()'

Michael Alexsander Silva Dias %!s(int64=6) %!d(string=hai) anos
pai
achega
70499faff8
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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>