MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / _splitSafe

Method _splitSafe

packages/alphatab/src/importer/GpifParser.ts:356–365  ·  view source on GitHub ↗
(text: string | undefined, separator: string = ' ')

Source from the content-addressed store, hash-verified

354 }
355
356 private static _splitSafe(text: string | undefined, separator: string = ' '): string[] {
357 if (!text) {
358 return [];
359 }
360
361 return text
362 .split(separator)
363 .map(t => t.trim())
364 .filter(t => t.length > 0);
365 }
366
367 //
368 // <BackingTrack>...</BackingTrack>

Callers 12

_parseScoreNodeMethod · 0.80
_parseMasterTrackNodeMethod · 0.80
_parseAutomationMethod · 0.80
_parseTrackMethod · 0.80
_parseArticulationMethod · 0.80
_parseStaffPropertyMethod · 0.80
_parseTrackPropertyMethod · 0.80
_parseMasterBarMethod · 0.80
_parseBarMethod · 0.80
_parseVoiceMethod · 0.80
_parseBeatMethod · 0.80

Calls 2

filterMethod · 0.80
mapMethod · 0.45

Tested by

no test coverage detected