File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ fn system_string_copy(string: &Il2CppString, method_info: OptionalMethod) -> &'_
42
42
#[ crate :: from_offset( "System" , "String" , "Clone" ) ]
43
43
fn system_string_clone ( this : & Il2CppString , method_info : OptionalMethod ) -> & ' _ mut Il2CppString ;
44
44
45
+ #[ crate :: from_offset( "System" , "String" , "Contains" ) ]
46
+ fn system_string_contains ( this : & Il2CppString , value : & Il2CppString , method_info : OptionalMethod ) -> bool ;
47
+
45
48
#[ crate :: from_offset( "System" , "String" , "Equals" ) ]
46
49
fn system_string_equals ( a : & Il2CppString , b : & Il2CppString , method_info : OptionalMethod ) -> bool ;
47
50
@@ -86,6 +89,10 @@ impl Il2CppString {
86
89
}
87
90
}
88
91
92
+ pub fn contains ( & self , value : impl AsRef < str > ) -> bool {
93
+ unsafe { system_string_contains ( self , value. as_ref ( ) . into ( ) , None ) }
94
+ }
95
+
89
96
/// Provides a new instance of the Il2CppString, separate from the original.
90
97
pub fn clone ( & self ) -> & ' _ Il2CppString {
91
98
// Yes.
You can’t perform that action at this time.
0 commit comments