MCPcopy Create free account
hub / github.com/BCsabaEngine/svelteesp32 / sw

Function sw

src/cppCode.ts:26–27  ·  view source on GitHub ↗
(value: string, cases: Partial<Record<'always' | 'never' | 'compiler', string>>)

Source from the content-addressed store, hash-verified

24export type ExtensionGroups = ExtensionGroup[];
25
26export const sw = (value: string, cases: Partial<Record<'always' | 'never' | 'compiler', string>>): string =>
27 cases[value as 'always' | 'never' | 'compiler'] ?? '';
28
29const bufferToByteString = (buffer: Buffer): string => {
30 if (buffer.length === 0) return '';

Callers 8

genPsychicHandlerBodyFunction · 0.90
genEspIdfFileHandlerFunction · 0.90
genEspIdfCppFunction · 0.90
genAsyncHandlerBodyFunction · 0.90
genWebserverHandlerBodyFunction · 0.90
genCommonHeaderFunction · 0.85
genDataArraysFunction · 0.85
genEtagArraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected