We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d617d1e commit a8e22faCopy full SHA for a8e22fa
src/com/adobe/utils/StringUtil.as
@@ -264,5 +264,23 @@ package com.adobe.utils
264
265
return string;
266
}
267
+
268
+ /**
269
+ * Returns true if and only if the input string contains the specified sequence value.
270
+ *
271
+ * @param input The string in which we are searching for the sequence
272
+ * @param sequence The string to search for
273
274
+ * @returns true if input contains sequence, false otherwise
275
276
+ * @langversion ActionScript 3.0
277
+ * @playerversion Flash 9.0
278
+ * @tiptext
279
+ */
280
+ public static function contains(input:String, sequence:String):Boolean
281
+ {
282
+ return input != null && input.indexOf(sequence) >= 0;
283
+ }
284
285
286
0 commit comments