Lines Matching refs:UnquotedValue
1644 StringRef UnquotedValue = Value.substr(1, Value.size() - 2); in getValue() local
1646 StringRef::size_type i = UnquotedValue.find_first_of("\\\r\n"); in getValue()
1648 return unescapeDoubleQuoted(UnquotedValue, i, Storage); in getValue()
1649 return UnquotedValue; in getValue()
1652 StringRef UnquotedValue = Value.substr(1, Value.size() - 2); in getValue() local
1653 StringRef::size_type i = UnquotedValue.find('\''); in getValue()
1657 Storage.reserve(UnquotedValue.size()); in getValue()
1658 for (; i != StringRef::npos; i = UnquotedValue.find('\'')) { in getValue()
1659 StringRef Valid(UnquotedValue.begin(), i); in getValue()
1662 UnquotedValue = UnquotedValue.substr(i + 2); in getValue()
1664 Storage.insert(Storage.end(), UnquotedValue.begin(), UnquotedValue.end()); in getValue()
1667 return UnquotedValue; in getValue()
1673 StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue in unescapeDoubleQuoted() argument
1679 Storage.reserve(UnquotedValue.size()); in unescapeDoubleQuoted()
1680 for (; i != StringRef::npos; i = UnquotedValue.find_first_of("\\\r\n")) { in unescapeDoubleQuoted()
1682 StringRef Valid(UnquotedValue.begin(), i); in unescapeDoubleQuoted()
1685 UnquotedValue = UnquotedValue.substr(i); in unescapeDoubleQuoted()
1687 assert(!UnquotedValue.empty() && "Can't be empty!"); in unescapeDoubleQuoted()
1690 switch (UnquotedValue[0]) { in unescapeDoubleQuoted()
1694 if ( UnquotedValue.size() > 1 in unescapeDoubleQuoted()
1695 && (UnquotedValue[1] == '\r' || UnquotedValue[1] == '\n')) in unescapeDoubleQuoted()
1696 UnquotedValue = UnquotedValue.substr(1); in unescapeDoubleQuoted()
1697 UnquotedValue = UnquotedValue.substr(1); in unescapeDoubleQuoted()
1700 if (UnquotedValue.size() == 1) in unescapeDoubleQuoted()
1703 UnquotedValue = UnquotedValue.substr(1); in unescapeDoubleQuoted()
1704 switch (UnquotedValue[0]) { in unescapeDoubleQuoted()
1707 T.Range = StringRef(UnquotedValue.begin(), 1); in unescapeDoubleQuoted()
1714 if ( UnquotedValue.size() > 1 in unescapeDoubleQuoted()
1715 && (UnquotedValue[1] == '\r' || UnquotedValue[1] == '\n')) in unescapeDoubleQuoted()
1716 UnquotedValue = UnquotedValue.substr(1); in unescapeDoubleQuoted()
1773 if (UnquotedValue.size() < 3) in unescapeDoubleQuoted()
1777 if (UnquotedValue.substr(1, 2).getAsInteger(16, UnicodeScalarValue)) in unescapeDoubleQuoted()
1781 UnquotedValue = UnquotedValue.substr(2); in unescapeDoubleQuoted()
1785 if (UnquotedValue.size() < 5) in unescapeDoubleQuoted()
1789 if (UnquotedValue.substr(1, 4).getAsInteger(16, UnicodeScalarValue)) in unescapeDoubleQuoted()
1793 UnquotedValue = UnquotedValue.substr(4); in unescapeDoubleQuoted()
1797 if (UnquotedValue.size() < 9) in unescapeDoubleQuoted()
1801 if (UnquotedValue.substr(1, 8).getAsInteger(16, UnicodeScalarValue)) in unescapeDoubleQuoted()
1805 UnquotedValue = UnquotedValue.substr(8); in unescapeDoubleQuoted()
1809 UnquotedValue = UnquotedValue.substr(1); in unescapeDoubleQuoted()
1812 Storage.insert(Storage.end(), UnquotedValue.begin(), UnquotedValue.end()); in unescapeDoubleQuoted()