engage/generated/system/io/
path.rs1#[cfg(feature = "system-io-path-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/system/io/path/Path.md"))]
11 #[::unity::class(namespace = "System.IO", name = "Path")]
12 #[parent(crate::system::object::Object)]
13 pub struct Path {
14 #[static_field]
15 #[rename(name = "InvalidPathChars")]
16 pub invalid_path_chars: ::unity::Array<u16>,
17 #[static_field]
18 #[rename(name = "AltDirectorySeparatorChar")]
19 pub alt_directory_separator_char: u16,
20 #[static_field]
21 #[rename(name = "DirectorySeparatorChar")]
22 pub directory_separator_char: u16,
23 #[static_field]
24 #[rename(name = "PathSeparator")]
25 pub path_separator: u16,
26 #[static_field]
27 #[rename(name = "DirectorySeparatorStr")]
28 pub directory_separator_str: ::unity::Il2CppString,
29 #[static_field]
30 #[rename(name = "VolumeSeparatorChar")]
31 pub volume_separator_char: u16,
32 #[static_field]
33 #[rename(name = "PathSeparatorChars")]
34 pub path_separator_chars: ::unity::Array<u16>,
35 #[static_field]
36 #[rename(name = "dirEqualsVolume")]
37 pub dir_equals_volume: bool,
38 #[static_field]
39 #[rename(name = "trimEndCharsWindows")]
40 pub trim_end_chars_windows: ::unity::Array<u16>,
41 #[static_field]
42 #[rename(name = "trimEndCharsUnix")]
43 pub trim_end_chars_unix: ::unity::Array<u16>,
44 }
45}
46
47#[cfg(feature = "system-io-path-types")]
48pub use __types::*;
49
50#[cfg(feature = "system-io-path")]
51impl Path {
52 #[doc = "`ChangeExtension(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
53 pub fn change_extension(
54 path: impl ::core::convert::Into<::unity::Il2CppString>,
55 extension: impl ::core::convert::Into<::unity::Il2CppString>,
56 ) -> ::unity::Il2CppString {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x3764b60usize)as*mut u8, ::unity::Il2CppString;
59(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(extension))
60 }
61 }
62
63 #[doc = "`Combine(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
64 pub fn combine(
65 path1: impl ::core::convert::Into<::unity::Il2CppString>,
66 path2: impl ::core::convert::Into<::unity::Il2CppString>,
67 ) -> ::unity::Il2CppString {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x3764e90usize)as*mut u8, ::unity::Il2CppString;
70(::unity::Il2CppString)::core::convert::Into::into(path1),(::unity::Il2CppString)::core::convert::Into::into(path2))
71 }
72 }
73
74 #[doc = "`CleanPath(::unity::Il2CppString)` overload"]
75 pub fn clean_path(s: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
76 unsafe {
77 ::unity::il2cpp_call!((::unity::module_base()+0x3765340usize)as*mut u8, ::unity::Il2CppString;
78(::unity::Il2CppString)::core::convert::Into::into(s))
79 }
80 }
81
82 #[doc = "`GetDirectoryName(::unity::Il2CppString)` overload"]
83 pub fn get_directory_name(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
84 unsafe {
85 ::unity::il2cpp_call!((::unity::module_base()+0x3765870usize)as*mut u8, ::unity::Il2CppString;
86(::unity::Il2CppString)::core::convert::Into::into(path))
87 }
88 }
89
90 #[doc = "`GetExtension(::unity::Il2CppString)` overload"]
91 pub fn get_extension(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
92 unsafe {
93 ::unity::il2cpp_call!((::unity::module_base()+0x37663c0usize)as*mut u8, ::unity::Il2CppString;
94(::unity::Il2CppString)::core::convert::Into::into(path))
95 }
96 }
97
98 #[doc = "`GetFileName(::unity::Il2CppString)` overload"]
99 pub fn get_file_name(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x3766580usize)as*mut u8, ::unity::Il2CppString;
102(::unity::Il2CppString)::core::convert::Into::into(path))
103 }
104 }
105
106 #[doc = "`GetFileNameWithoutExtension(::unity::Il2CppString)` overload"]
107 pub fn get_file_name_without_extension(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
108 unsafe {
109 ::unity::il2cpp_call!((::unity::module_base()+0x37666a0usize)as*mut u8, ::unity::Il2CppString;
110(::unity::Il2CppString)::core::convert::Into::into(path))
111 }
112 }
113
114 #[doc = "`GetFullPath(::unity::Il2CppString)` overload"]
115 pub fn get_full_path(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
116 unsafe {
117 ::unity::il2cpp_call!((::unity::module_base()+0x3766710usize)as*mut u8, ::unity::Il2CppString;
118(::unity::Il2CppString)::core::convert::Into::into(path))
119 }
120 }
121
122 #[doc = "`GetFullPathInternal(::unity::Il2CppString)` overload"]
123 pub fn get_full_path_internal(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
124 unsafe {
125 ::unity::il2cpp_call!((::unity::module_base()+0x3767120usize)as*mut u8, ::unity::Il2CppString;
126(::unity::Il2CppString)::core::convert::Into::into(path))
127 }
128 }
129
130 #[doc = "`GetFullPathName(::unity::Il2CppString)` overload"]
131 pub fn get_full_path_name(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
132 unsafe {
133 ::unity::il2cpp_call!((::unity::module_base()+0x3767270usize)as*mut u8, ::unity::Il2CppString;
134(::unity::Il2CppString)::core::convert::Into::into(path))
135 }
136 }
137
138 #[doc = "`WindowsDriveAdjustment(::unity::Il2CppString)` overload"]
139 pub fn windows_drive_adjustment(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
140 unsafe {
141 ::unity::il2cpp_call!((::unity::module_base()+0x3767560usize)as*mut u8, ::unity::Il2CppString;
142(::unity::Il2CppString)::core::convert::Into::into(path))
143 }
144 }
145
146 #[doc = "`InsecureGetFullPath(::unity::Il2CppString)` overload"]
147 pub fn insecure_get_full_path(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
148 unsafe {
149 ::unity::il2cpp_call!((::unity::module_base()+0x3766790usize)as*mut u8, ::unity::Il2CppString;
150(::unity::Il2CppString)::core::convert::Into::into(path))
151 }
152 }
153
154 #[doc = "`IsDirectorySeparator(u16)` overload"]
155 pub fn is_directory_separator(c: impl ::core::convert::Into<u16>) -> bool {
156 unsafe {
157 ::unity::il2cpp_call!((::unity::module_base()+0x3767840usize)as*mut u8,bool;
158(u16)::core::convert::Into::into(c))
159 }
160 }
161
162 #[doc = "`GetPathRoot(::unity::Il2CppString)` overload"]
163 pub fn get_path_root(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
164 unsafe {
165 ::unity::il2cpp_call!((::unity::module_base()+0x3765c00usize)as*mut u8, ::unity::Il2CppString;
166(::unity::Il2CppString)::core::convert::Into::into(path))
167 }
168 }
169
170 #[doc = "`GetTempFileName()` overload"]
171 pub fn get_temp_file_name() -> ::unity::Il2CppString {
172 unsafe {
173 ::unity::il2cpp_call!((::unity::module_base()+0x3768340usize)as*mut u8, ::unity::Il2CppString;
174 )
175 }
176 }
177
178 #[doc = "`GetTempPath()` overload"]
179 pub fn get_temp_path() -> ::unity::Il2CppString {
180 unsafe {
181 ::unity::il2cpp_call!((::unity::module_base()+0x37686e0usize)as*mut u8, ::unity::Il2CppString;
182 )
183 }
184 }
185
186 #[doc = "`IsPathRooted(::unity::Il2CppString)` overload"]
187 pub fn is_path_rooted(path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
188 unsafe {
189 ::unity::il2cpp_call!((::unity::module_base()+0x3765140usize)as*mut u8,bool;
190(::unity::Il2CppString)::core::convert::Into::into(path))
191 }
192 }
193
194 #[doc = "`GetInvalidPathChars()` overload"]
195 pub fn get_invalid_path_chars() -> ::unity::Array<u16> {
196 unsafe {
197 ::unity::il2cpp_call!((::unity::module_base()+0x3768810usize)as*mut u8, ::unity::Array<u16> ;
198 )
199 }
200 }
201
202 #[doc = "`findExtension(::unity::Il2CppString)` overload"]
203 pub fn find_extension(path: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
204 unsafe {
205 ::unity::il2cpp_call!((::unity::module_base()+0x3764de0usize)as*mut u8,i32;
206(::unity::Il2CppString)::core::convert::Into::into(path))
207 }
208 }
209
210 #[doc = "`.cctor()` overload"]
211 pub fn cctor() -> () {
212 unsafe {
213 ::unity::il2cpp_call!((::unity::module_base()+0x37688b0usize)as*mut u8,();
214 )
215 }
216 }
217
218 #[doc = "`GetServerAndShare(::unity::Il2CppString)` overload"]
219 pub fn get_server_and_share(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
220 unsafe {
221 ::unity::il2cpp_call!((::unity::module_base()+0x3768b30usize)as*mut u8, ::unity::Il2CppString;
222(::unity::Il2CppString)::core::convert::Into::into(path))
223 }
224 }
225
226 #[doc = "`SameRoot(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
227 pub fn same_root(root: impl ::core::convert::Into<::unity::Il2CppString>, path: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
228 unsafe {
229 ::unity::il2cpp_call!((::unity::module_base()+0x3768d70usize)as*mut u8,bool;
230(::unity::Il2CppString)::core::convert::Into::into(root),(::unity::Il2CppString)::core::convert::Into::into(path))
231 }
232 }
233
234 #[doc = "`CanonicalizePath(::unity::Il2CppString)` overload"]
235 pub fn canonicalize_path(path: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
236 unsafe {
237 ::unity::il2cpp_call!((::unity::module_base()+0x3767910usize)as*mut u8, ::unity::Il2CppString;
238(::unity::Il2CppString)::core::convert::Into::into(path))
239 }
240 }
241
242 #[doc = "`Combine(::unity::Array<::unity::Il2CppString>)` overload"]
243 pub fn combine_2(paths: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>) -> ::unity::Il2CppString {
244 unsafe {
245 ::unity::il2cpp_call!((::unity::module_base()+0x37692e0usize)as*mut u8, ::unity::Il2CppString;
246(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(paths))
247 }
248 }
249
250 #[doc = "`Combine(::unity::Il2CppString, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
251 pub fn combine_3(
252 path1: impl ::core::convert::Into<::unity::Il2CppString>,
253 path2: impl ::core::convert::Into<::unity::Il2CppString>,
254 path3: impl ::core::convert::Into<::unity::Il2CppString>,
255 ) -> ::unity::Il2CppString {
256 unsafe {
257 ::unity::il2cpp_call!((::unity::module_base()+0x3769630usize)as*mut u8, ::unity::Il2CppString;
258(::unity::Il2CppString)::core::convert::Into::into(path1),(::unity::Il2CppString)::core::convert::Into::into(path2),(::unity::Il2CppString)::core::convert::Into::into(path3))
259 }
260 }
261
262 #[doc = "`Validate(::unity::Il2CppString)` overload"]
263 pub fn validate(path: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
264 unsafe {
265 ::unity::il2cpp_call!((::unity::module_base()+0x3769800usize)as*mut u8,();
266(::unity::Il2CppString)::core::convert::Into::into(path))
267 }
268 }
269
270 #[doc = "`Validate(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
271 pub fn validate_2(
272 path: impl ::core::convert::Into<::unity::Il2CppString>,
273 parameter_name: impl ::core::convert::Into<::unity::Il2CppString>,
274 ) -> () {
275 unsafe {
276 ::unity::il2cpp_call!((::unity::module_base()+0x3769880usize)as*mut u8,();
277(::unity::Il2CppString)::core::convert::Into::into(path),(::unity::Il2CppString)::core::convert::Into::into(parameter_name))
278 }
279 }
280
281 #[doc = "`get_DirectorySeparatorCharAsString()` overload"]
282 pub fn get_directory_separator_char_as_string() -> ::unity::Il2CppString {
283 unsafe {
284 ::unity::il2cpp_call!((::unity::module_base()+0x37699d0usize)as*mut u8, ::unity::Il2CppString;
285 )
286 }
287 }
288
289 #[doc = "`get_TrimEndChars()` overload"]
290 pub fn get_trim_end_chars() -> ::unity::Array<u16> {
291 unsafe {
292 ::unity::il2cpp_call!((::unity::module_base()+0x3769a40usize)as*mut u8, ::unity::Array<u16> ;
293 )
294 }
295 }
296
297 #[doc = "`CheckSearchPattern(::unity::Il2CppString)` overload"]
298 pub fn check_search_pattern(search_pattern: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
299 unsafe {
300 ::unity::il2cpp_call!((::unity::module_base()+0x3769ae0usize)as*mut u8,();
301(::unity::Il2CppString)::core::convert::Into::into(search_pattern))
302 }
303 }
304
305 #[doc = "`CheckInvalidPathChars(::unity::Il2CppString, bool)` overload"]
306 pub fn check_invalid_path_chars(
307 path: impl ::core::convert::Into<::unity::Il2CppString>,
308 check_additional: impl ::core::convert::Into<bool>,
309 ) -> () {
310 unsafe {
311 ::unity::il2cpp_call!((::unity::module_base()+0x3769c70usize)as*mut u8,();
312(::unity::Il2CppString)::core::convert::Into::into(path),(bool)::core::convert::Into::into(check_additional))
313 }
314 }
315
316 #[doc = "`InternalCombine(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
317 pub fn internal_combine(
318 path1: impl ::core::convert::Into<::unity::Il2CppString>,
319 path2: impl ::core::convert::Into<::unity::Il2CppString>,
320 ) -> ::unity::Il2CppString {
321 unsafe {
322 ::unity::il2cpp_call!((::unity::module_base()+0x3769e20usize)as*mut u8, ::unity::Il2CppString;
323(::unity::Il2CppString)::core::convert::Into::into(path1),(::unity::Il2CppString)::core::convert::Into::into(path2))
324 }
325 }
326}
327
328#[cfg(feature = "system-io-path")]
329impl Path {
330 pub fn change_extension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
332 }
333
334 pub fn combine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
336 }
337
338 pub fn clean_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
340 }
341
342 pub fn get_directory_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
344 }
345
346 pub fn get_extension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
348 }
349
350 pub fn get_file_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
352 }
353
354 pub fn get_file_name_without_extension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
356 }
357
358 pub fn get_full_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
360 }
361
362 pub fn get_full_path_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
364 }
365
366 pub fn get_full_path_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
368 }
369
370 pub fn windows_drive_adjustment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
372 }
373
374 pub fn insecure_get_full_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
376 }
377
378 pub fn is_directory_separator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
380 }
381
382 pub fn get_path_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
384 }
385
386 pub fn get_temp_file_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
388 }
389
390 pub fn get_temp_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
392 }
393
394 pub fn is_path_rooted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
396 }
397
398 pub fn get_invalid_path_chars_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
400 }
401
402 pub fn find_extension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
404 }
405
406 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
408 }
409
410 pub fn get_server_and_share_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
412 }
413
414 pub fn same_root_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
416 }
417
418 pub fn canonicalize_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
420 }
421
422 pub fn combine_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
424 }
425
426 pub fn combine_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
428 }
429
430 pub fn validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
432 }
433
434 pub fn validate_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
436 }
437
438 pub fn get_directory_separator_char_as_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
440 }
441
442 pub fn get_trim_end_chars_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
444 }
445
446 pub fn check_search_pattern_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
448 }
449
450 pub fn check_invalid_path_chars_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
452 }
453
454 pub fn internal_combine_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
456 }
457}
458
459#[cfg(feature = "system-io-path")]
460#[doc(hidden)]
461pub mod prelude {
462 pub use super::{IPath, Path};
463 pub use crate::system::object::IObject;
464 #[cfg(feature = "system-object")]
465 pub use crate::system::object::IObjectMethods;
466}