| 42 | class JSLinearString; |
| 43 | |
| 44 | Gjs::AutoChar gjs_hyphen_to_underscore(const char* str) { |
| 45 | char* s = g_strdup(str); |
| 46 | char* retval = s; |
| 47 | while (*(s++) != '\0') { |
| 48 | if (*s == '-') |
| 49 | *s = '_'; |
| 50 | } |
| 51 | return retval; |
| 52 | } |
| 53 | |
| 54 | Gjs::AutoChar gjs_hyphen_to_camel(const char* str) { |
| 55 | Gjs::AutoChar retval{static_cast<char*>(g_malloc(strlen(str) + 1))}; |
no outgoing calls
no test coverage detected