Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clarkduvall/spoonerizer
/ functions
Functions
201 in github.com/clarkduvall/spoonerizer
⨍
Functions
201
◇
Types & classes
26
↓ 46 callers
Method
addElement
addElement adds a child element based on the current token.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:298
↓ 37 callers
Method
readByte
readByte returns the next byte from the input stream, doing a buffered read from z.r into z.buf if necessary. z.buf[z.raw.start:z.raw.end] remains a c
Godeps/_workspace/src/golang.org/x/net/html/token.go:234
↓ 34 callers
Method
String
String returns a string representation of the Token.
Godeps/_workspace/src/golang.org/x/net/html/token.go:100
↓ 32 callers
Method
popUntil
popUntil pops the stack of open elements at the highest element whose tag is in matchTags, provided there is no higher element in the scope's stop tag
Godeps/_workspace/src/golang.org/x/net/html/parse.go:97
↓ 27 callers
Method
pop
pop pops the stack. It will panic if s is empty.
Godeps/_workspace/src/golang.org/x/net/html/node.go:150
↓ 26 callers
Method
WriteString
(string)
Godeps/_workspace/src/golang.org/x/net/html/render.go:18
↓ 26 callers
Method
top
()
Godeps/_workspace/src/golang.org/x/net/html/parse.go:52
↓ 21 callers
Method
parseImpliedToken
parseImpliedToken parses a token as though it had appeared in the parser's input.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1958
↓ 20 callers
Function
assertSpoonerized
(t *testing.T, s1 string, s2 string)
spoonerize/spoonerize_test.go:13
↓ 18 callers
Function
inBodyIM
Section 12.2.5.4.7.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:701
↓ 16 callers
Method
reconstructActiveFormattingElements
Section 12.2.3.3.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:365
↓ 15 callers
Method
AppendChild
AppendChild adds a node c as a child of n. It will panic if c already has a parent or siblings.
Godeps/_workspace/src/golang.org/x/net/html/node.go:81
↓ 15 callers
Method
addChild
addChild adds a child node n to the top element, and pushes n onto the stack of open elements if it is an element node.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:212
↓ 12 callers
Method
index
index returns the index of the top-most occurrence of n in the stack, or -1 if n is not present.
Godeps/_workspace/src/golang.org/x/net/html/node.go:167
↓ 11 callers
Method
Err
Err returns the error associated with the most recent ErrorToken token. This is typically io.EOF, meaning the end of tokenization.
Godeps/_workspace/src/golang.org/x/net/html/token.go:222
↓ 11 callers
Method
addText
addText adds text to the preceding node if it is a text node, or else it calls addChild with a new text node.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:273
↓ 11 callers
Method
elementInScope
elementInScope is like popUntil, except that it doesn't modify the stack of open elements.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:154
↓ 10 callers
Method
Next
Next scans the next token and returns its type.
Godeps/_workspace/src/golang.org/x/net/html/token.go:950
↓ 10 callers
Method
remove
remove removes a node from the stack. It is a no-op if n is not present.
Godeps/_workspace/src/golang.org/x/net/html/node.go:184
↓ 9 callers
Function
Lookup
Lookup returns the encoding with the specified label, and its canonical name. It returns nil and the empty string if label is not one of the standard
Godeps/_workspace/src/golang.org/x/net/html/charset/charset.go:29
↓ 9 callers
Method
acknowledgeSelfClosingTag
Section 12.2.4.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:394
↓ 9 callers
Function
assertHTMLSpoonerized
(t *testing.T, s1 string, s2 string)
spoonerize/html_test.go:13
↓ 8 callers
Function
NewTokenizer
NewTokenizer returns a new HTML Tokenizer for the given Reader. The input is assumed to be UTF-8 encoded.
Godeps/_workspace/src/golang.org/x/net/html/token.go:1195
↓ 8 callers
Method
String
String returns the atom's name.
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:24
↓ 7 callers
Function
Lookup
Lookup returns the atom whose name is s. It returns zero if there is no such atom. The lookup is case sensitive.
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:57
↓ 7 callers
Method
clearActiveFormattingElements
Section 12.2.3.3.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:355
↓ 7 callers
Function
inHeadIM
Section 12.2.5.4.4.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:564
↓ 6 callers
Method
clearStackToContext
clearStackToContext pops elements off the stack of open elements until a scope-defined element is found.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:160
↓ 6 callers
Method
startTagIn
startTagIn returns whether the start tag in z.buf[z.data.start:z.data.end] case-insensitively matches any element of ss.
Godeps/_workspace/src/golang.org/x/net/html/token.go:756
↓ 5 callers
Method
RemoveChild
RemoveChild removes a node c that is a child of n. Afterwards, c will have no parent and no siblings. It will panic if c's parent is not n.
Godeps/_workspace/src/golang.org/x/net/html/node.go:100
↓ 5 callers
Method
TagName
TagName returns the lower-cased name of a tag token (the `img` out of `<IMG SRC="foo">`) and whether the tag has attributes. The contents of the retur
Godeps/_workspace/src/golang.org/x/net/html/token.go:1134
↓ 5 callers
Method
setOriginalIM
setOriginalIM sets the insertion mode to return to after completing a text or inTableText insertion mode. Section 12.2.3.1, "using the rules for".
Godeps/_workspace/src/golang.org/x/net/html/parse.go:407
↓ 5 callers
Method
skipWhiteSpace
skipWhiteSpace skips past any white space.
Godeps/_workspace/src/golang.org/x/net/html/token.go:308
↓ 4 callers
Method
Close
()
spoonerize/html.go:14
↓ 4 callers
Method
Raw
Raw returns the unmodified text of the current token. Calling Next, Token, Text, TagName or TagAttr may change the contents of the returned slice.
Godeps/_workspace/src/golang.org/x/net/html/token.go:1070
↓ 4 callers
Function
addTags
(s string)
spoonerize/html_test.go:9
↓ 4 callers
Function
adjustAttributeNames
(aa []Attribute, nameMap map[string]string)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:11
↓ 4 callers
Function
escape
(w writer, s string)
Godeps/_workspace/src/golang.org/x/net/html/escape.go:198
↓ 4 callers
Function
isSpecialElement
(element *Node)
Godeps/_workspace/src/golang.org/x/net/html/const.go:94
↓ 4 callers
Method
readRawEndTag
readRawEndTag attempts to read a tag like "</foo>", where "foo" is z.rawTag. If it succeeds, it backs up the input position to reconsume the tag and r
Godeps/_workspace/src/golang.org/x/net/html/token.go:366
↓ 4 callers
Method
readUntilCloseAngle
readUntilCloseAngle reads until the next ">".
Godeps/_workspace/src/golang.org/x/net/html/token.go:645
↓ 4 callers
Method
resetInsertionMode
Section 12.2.3.1, "reset the insertion mode".
Godeps/_workspace/src/golang.org/x/net/html/parse.go:415
↓ 3 callers
Function
Parse
Parse returns the parse tree for the HTML from the given Reader. The input is assumed to be UTF-8 encoded.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:2016
↓ 3 callers
Function
Spoonerize
(textBytes []byte)
spoonerize/spoonerize.go:106
↓ 3 callers
Function
SpoonerizeHTML
(r io.Reader, extraHTML string)
spoonerize/html.go:18
↓ 3 callers
Method
TagAttr
TagAttr returns the lower-cased key and unescaped value of the next unparsed attribute for the current tag token and whether there are more attributes
Godeps/_workspace/src/golang.org/x/net/html/token.go:1150
↓ 3 callers
Method
Text
Text returns the unescaped text of a text, comment or doctype token. The contents of the returned slice may change on the next call to Next.
Godeps/_workspace/src/golang.org/x/net/html/token.go:1113
↓ 3 callers
Method
Token
Token returns the next Token. The result's Data and Attr values remain valid after subsequent Next calls.
Godeps/_workspace/src/golang.org/x/net/html/token.go:1166
↓ 3 callers
Method
addFormattingElement
Section 12.2.3.3.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:308
↓ 3 callers
Function
advanceUntil
(bytes []byte, i int, fn pred)
spoonerize/spoonerize.go:57
↓ 3 callers
Function
assertEqual
(t *testing.T, actual interface{}, expected interface{})
spoonerize/spoonerize_test.go:7
↓ 3 callers
Function
assertHTMLSpoonerizedExtra
(t *testing.T, s1 string, s2 string, extra string)
spoonerize/html_test.go:20
↓ 3 callers
Function
benchmarkTokenizer
(b *testing.B, level int)
Godeps/_workspace/src/golang.org/x/net/html/token_test.go:699
↓ 3 callers
Method
clone
clone returns a new node with the same type, data and attributes. The clone has no parent, no siblings and no children.
Godeps/_workspace/src/golang.org/x/net/html/node.go:135
↓ 3 callers
Function
convertNewlines
convertNewlines converts "\r" and "\r\n" in s to "\n". The conversion happens in place, but the resulting slice may be shorter.
Godeps/_workspace/src/golang.org/x/net/html/token.go:1076
↓ 3 callers
Method
fosterParent
fosterParent adds a child node according to the foster parenting rules. Section 12.2.5.3, "foster parenting".
Godeps/_workspace/src/golang.org/x/net/html/parse.go:238
↓ 3 callers
Method
inBodyEndTagFormatting
(tagAtom a.Atom)
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1038
↓ 3 callers
Method
indexOfElementInScope
indexOfElementInScope returns the index in p.oe of the highest element whose tag is in matchTags that is in scope. If no matching element is in scope,
Godeps/_workspace/src/golang.org/x/net/html/parse.go:108
↓ 3 callers
Method
tagString
tagString returns a string representation of a tag Token's Data and Attr.
Godeps/_workspace/src/golang.org/x/net/html/token.go:84
↓ 3 callers
Function
unescape
unescape unescapes b's entities in-place, so that "a<b" becomes "a<b". attribute should be true if parsing an attribute value.
Godeps/_workspace/src/golang.org/x/net/html/escape.go:167
↓ 3 callers
Function
writeQuoted
writeQuoted writes s to w surrounded by quotes. Normally it will use double quotes, but if s contains a double quote, it will use single quotes. It is
Godeps/_workspace/src/golang.org/x/net/html/render.go:235
↓ 2 callers
Function
DetermineEncoding
DetermineEncoding determines the encoding of an HTML document by examining up to the first 1024 bytes of content and the declared Content-Type. See h
Godeps/_workspace/src/golang.org/x/net/html/charset/charset.go:39
↓ 2 callers
Function
EscapeString
EscapeString escapes special characters like "<" to become "<". It escapes only five such characters: <, >, &, ' and ". UnescapeString(EscapeString
Godeps/_workspace/src/golang.org/x/net/html/escape.go:237
↓ 2 callers
Function
NewTokenizerFragment
NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for tokenizing an existing element's InnerHTML fragment. contextTag is that el
Godeps/_workspace/src/golang.org/x/net/html/token.go:1207
↓ 2 callers
Method
NextIsNotRawText
NextIsNotRawText instructs the tokenizer that the next token should not be considered as 'raw text'. Some elements, such as script and title elements,
Godeps/_workspace/src/golang.org/x/net/html/token.go:216
↓ 2 callers
Function
ParseFragment
ParseFragment parses a fragment of HTML and returns the nodes that were found. If the fragment is the InnerHTML for an existing element, pass that ele
Godeps/_workspace/src/golang.org/x/net/html/parse.go:2036
↓ 2 callers
Function
Render
Render renders the parse tree n to the given writer. Rendering is done on a 'best effort' basis: calling Parse on the output of Render will always re
Godeps/_workspace/src/golang.org/x/net/html/render.go:45
↓ 2 callers
Method
SetMaxBuf
SetMaxBuf sets a limit on the amount of data buffered during tokenization. A value of 0 means unlimited.
Godeps/_workspace/src/golang.org/x/net/html/token.go:1189
↓ 2 callers
Function
UnescapeString
UnescapeString unescapes entities like "<" to become "<". It unescapes a larger range of entities than EscapeString escapes. For example, "á
Godeps/_workspace/src/golang.org/x/net/html/escape.go:251
↓ 2 callers
Function
adjustForeignAttributes
(aa []Attribute)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:19
↓ 2 callers
Function
checkNodeConsistency
checkNodeConsistency checks that a node's parent/child/sibling relationships are consistent.
Godeps/_workspace/src/golang.org/x/net/html/node_test.go:34
↓ 2 callers
Function
copyAttributes
copyAttributes copies attributes of src not found on dst to dst.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:684
↓ 2 callers
Function
dump
(n *Node)
Godeps/_workspace/src/golang.org/x/net/html/parse_test.go:186
↓ 2 callers
Function
dumpIndent
(w io.Writer, level int)
Godeps/_workspace/src/golang.org/x/net/html/parse_test.go:102
↓ 2 callers
Function
fromMetaElement
(s string)
Godeps/_workspace/src/golang.org/x/net/html/charset/charset.go:203
↓ 2 callers
Method
generateImpliedEndTags
generateImpliedEndTags pops nodes off the stack of open elements as long as the top node has a tag name of dd, dt, li, option, optgroup, p, rp, or rt.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:188
↓ 2 callers
Method
hash
hash returns the two hashes for s.
Godeps/_workspace/src/golang.org/x/net/html/atom/gen.go:224
↓ 2 callers
Function
htmlIntegrationPoint
(n *Node)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:34
↓ 2 callers
Method
inBodyEndTagOther
inBodyEndTagOther performs the "any other end tag" algorithm for inBodyIM. "Any other end tag" handling from 12.2.5.5 The rules for parsing tokens in
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1165
↓ 2 callers
Function
inTableIM
Section 12.2.5.4.9.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1207
↓ 2 callers
Method
insert
insert inserts a node at the given index.
Godeps/_workspace/src/golang.org/x/net/html/node.go:177
↓ 2 callers
Function
isUpper
(c byte)
spoonerize/spoonerize.go:20
↓ 2 callers
Function
lower
lower lower-cases the A-Z bytes in b in-place, so that "aBc" becomes "abc".
Godeps/_workspace/src/golang.org/x/net/html/escape.go:187
↓ 2 callers
Function
match
(s string, t []byte)
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:46
↓ 2 callers
Function
mathMLTextIntegrationPoint
(n *Node)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:59
↓ 2 callers
Method
parse
()
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1993
↓ 2 callers
Method
parseCurrentToken
parseCurrentToken runs the current token through the parsing routines until it is consumed.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1972
↓ 2 callers
Method
push
push attempts to push aside the entry in slot i.
Godeps/_workspace/src/golang.org/x/net/html/atom/gen.go:272
↓ 2 callers
Method
readTag
readTag reads the next tag token and its attributes. If saveAttr, those attributes are saved in z.attr, otherwise z.attr is set to an empty slice. The
Godeps/_workspace/src/golang.org/x/net/html/token.go:816
↓ 2 callers
Function
render
(w writer, n *Node)
Godeps/_workspace/src/golang.org/x/net/html/render.go:60
↓ 2 callers
Method
shouldFosterParent
shouldFosterParent returns whether the next node to be added should be foster parented.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:226
↓ 2 callers
Method
string
()
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:33
↓ 2 callers
Function
toLower
(c byte)
spoonerize/spoonerize.go:28
↓ 2 callers
Function
toUpper
(c byte)
spoonerize/spoonerize.go:24
↓ 2 callers
Function
transformString
(t transform.Transformer, s string)
Godeps/_workspace/src/golang.org/x/net/html/charset/charset_test.go:18
↓ 2 callers
Function
unescapeEntity
unescapeEntity reads an entity like "<" from b[src:] and writes the corresponding "<" to b[dst:], returning the incremented dst and src cursors. Pr
Godeps/_workspace/src/golang.org/x/net/html/escape.go:57
↓ 1 callers
Method
AllowCDATA
AllowCDATA sets whether or not the tokenizer recognizes <![CDATA[foo]]> as the text "foo". The default value is false, which means to recognize it as
Godeps/_workspace/src/golang.org/x/net/html/token.go:188
↓ 1 callers
Method
Buffered
Buffered returns a slice containing data buffered but not yet tokenized.
Godeps/_workspace/src/golang.org/x/net/html/token.go:290
↓ 1 callers
Method
InsertBefore
InsertBefore inserts newChild as a child of n, immediately before oldChild in the sequence of n's children. oldChild may be nil, in which case newChil
Godeps/_workspace/src/golang.org/x/net/html/node.go:53
↓ 1 callers
Function
NewReader
NewReader returns an io.Reader that converts the content of r to UTF-8. It calls DetermineEncoding to find out what r's encoding is.
Godeps/_workspace/src/golang.org/x/net/html/charset/charset.go:95
next →
1–100 of 201, ranked by callers