MCPcopy Index your code
hub / github.com/ether/etherpad / fromString

Method fromString

src/static/js/AttributeMap.ts:35–37  ·  view source on GitHub ↗

* Converts an attribute string into an AttributeMap. * * @param {AttributeString} str - The attribute string to convert into an AttributeMap. * @param {AttributePool} pool - Attribute pool. * @returns {AttributeMap}

(str: string, pool?: AttributePool|null)

Source from the content-addressed store, hash-verified

33 * @returns {AttributeMap}
34 */
35 public static fromString(str: string, pool?: AttributePool|null): AttributeMap {
36 return new AttributeMap(pool).updateFromString(str);
37 }
38
39 /**
40 * @param {AttributePool} pool - Attribute pool.

Callers 15

doIncorpLineSpliceFunction · 0.80
handleKeyEventFunction · 0.80
getAttributeOnLineFunction · 0.80
composeAttributesFunction · 0.80
inverseFunction · 0.80
stampAuthorOnInsertsFunction · 0.80
makeChangesetTrackerFunction · 0.80
firstInsertAuthorFunction · 0.80
AttributeMap.tsFile · 0.80
ImportHtml.tsFile · 0.80

Calls 1

updateFromStringMethod · 0.80

Tested by 1

firstInsertAuthorFunction · 0.64