MCPcopy Create free account
hub / github.com/GateNLP/gate-core / doState10

Method doState10

src/main/java/gate/sgml/Sgml2Xml.java:384–398  ·  view source on GitHub ↗

If any C -> state 4 If '=' state 6 Stays here while reads WS

(char currChar)

Source from the content-addressed store, hash-verified

382 * Stays here while reads WS
383 */
384 private void doState10(char currChar){
385 if ('=' == currChar)
386 m_currState = 6;
387 if ( ('=' != currChar) && !isWhiteSpace(currChar)){
388 // this mean that the attribute was a value and we have to create
389 // a default attribute
390 m_modifier.insert(attrEnd,'"');
391 m_modifier.insert(attrStart,"defaultAttr=\"");
392
393 // go to state 4
394 m_currState = 4;
395
396 m_cursor = attrStart;
397 }
398 }// doState10
399
400 /**
401 * We are preparing to read the and definition of an element

Callers 1

convertMethod · 0.95

Calls 2

isWhiteSpaceMethod · 0.95
insertMethod · 0.80

Tested by

no test coverage detected