splitHedString

class HedStringTokenizer(hedString)

Class for tokenizing hed strings

HedStringTokenizer.tokenize()

Split the HED string into delimiters and tags.

Returns:

checkForInvalidCharacters(hedString, tagSpecs)

Check the split HED tags for invalid characters

Arguments:
  • hedString (string) – The HED string to be split.

  • tagSpecs (Array.<TagSpec>) – The tag specifications.

Returns:

Object.<string, Array.<Issue>> – Any issues found.

createParsedTags(hedString, hedSchemas, tagSpecs, groupSpecs)

Create the parsed HED tag and group objects.

Arguments:
  • hedString (string) – The HED string to be split.

  • hedSchemas (Schemas) – The collection of HED schemas.

  • tagSpecs (Array.<TagSpec>) – The tag specifications.

  • groupSpecs (GroupSpec) – The bounds of the tag groups.

Returns:

splitHedString(hedString)

Split a HED string into delimiters and tags.

Arguments:
  • hedString (string) – The HED string to split.

Returns:

Array.<Array> – A list of string parts. The boolean is true if the part is a tag and false if it is a delimiter. The numbers are the bounds of the part.