monorepo structuring

This commit is contained in:
Aylur
2024-09-01 14:17:36 +02:00
parent 408faee169
commit 3e3f045d65
203 changed files with 512 additions and 7849 deletions
+21
View File
@@ -0,0 +1,21 @@
namespace AstalBluetooth {
internal string kebab_case(string pascal_case) {
StringBuilder kebab_case = new StringBuilder();
for (int i = 0; i < pascal_case.length; i++) {
char c = pascal_case[i];
if (c >= 'A' && c <= 'Z') {
if (i != 0) {
kebab_case.append_c('-');
}
kebab_case.append_c((char)(c + 32));
} else {
kebab_case.append_c(c);
}
}
return kebab_case.str;
}
}