ext/-test-/string/normalize.c
raw| 1 | #include "internal/file.h" |
| 2 | |
| 3 | #ifdef __APPLE__ |
| 4 | static VALUE |
| 5 | normalize_ospath(VALUE str) |
| 6 | { |
| 7 | return rb_str_normalize_ospath(RSTRING_PTR(str), RSTRING_LEN(str)); |
| 8 | } |
| 9 | #else |
| 10 | #define normalize_ospath rb_f_notimplement |
| 11 | #endif |
| 12 | |
| 13 | void |
| 14 | Init_string_normalize(VALUE klass) |
| 15 | { |
| 16 | rb_define_method(klass, "normalize_ospath", normalize_ospath, 0); |
| 17 | } |