hedStrings

replaceTagNameWithPound()

Replace the end of a HED tag with a pound sign.

# .. js:autofunction:: getTagSlashIndices

getTagLevels(tag)

Get the levels of a tag.

Arguments:
  • tag (string) – A HED tag string.

Returns:

Array.<string> – The levels of this tag.

hedStrings.getTagName(tag, character)

Get the last part of a HED tag.

Arguments:
  • tag (string) – A HED tag

  • character (string) – The character to use as a separator.

Returns:

string – The last part of the tag using the given separator.

hedStrings.getParentTag()

Get the HED tag prefix (up to the last slash).

hedStringIsAGroup(hedString)

Determine whether a HED string is a group (surrounded by parentheses).

Arguments:
  • hedString (string) – A HED string.

loadSchemaFile(xmlDataPromise, issueCode, issueArgs)

Actually load the schema XML file.

Arguments:
  • xmlDataPromise (Promise.<string>) – The Promise containing the unparsed XML data.

  • issueCode (string) – The issue code.

  • issueArgs (Object.<string, string>) – The issue arguments passed from the calling function.

Returns:

Promise.<object> – The parsed schema XML data.

removeGroupParentheses(tagGroup)

Return a copy of a group tag with the surrounding parentheses removed.

Arguments:
  • tagGroup (string) – A tag group string.