MCPcopy Create free account

hub / github.com/clarkduvall/spoonerizer / functions

Functions201 in github.com/clarkduvall/spoonerizer

↓ 46 callersMethodaddElement
addElement adds a child element based on the current token.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:298
↓ 37 callersMethodreadByte
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 callersMethodString
String returns a string representation of the Token.
Godeps/_workspace/src/golang.org/x/net/html/token.go:100
↓ 32 callersMethodpopUntil
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 callersMethodpop
pop pops the stack. It will panic if s is empty.
Godeps/_workspace/src/golang.org/x/net/html/node.go:150
↓ 26 callersMethodWriteString
(string)
Godeps/_workspace/src/golang.org/x/net/html/render.go:18
↓ 26 callersMethodtop
()
Godeps/_workspace/src/golang.org/x/net/html/parse.go:52
↓ 21 callersMethodparseImpliedToken
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 callersFunctionassertSpoonerized
(t *testing.T, s1 string, s2 string)
spoonerize/spoonerize_test.go:13
↓ 18 callersFunctioninBodyIM
Section 12.2.5.4.7.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:701
↓ 16 callersMethodreconstructActiveFormattingElements
Section 12.2.3.3.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:365
↓ 15 callersMethodAppendChild
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 callersMethodaddChild
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 callersMethodindex
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 callersMethodErr
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 callersMethodaddText
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 callersMethodelementInScope
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 callersMethodNext
Next scans the next token and returns its type.
Godeps/_workspace/src/golang.org/x/net/html/token.go:950
↓ 10 callersMethodremove
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 callersFunctionLookup
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 callersMethodacknowledgeSelfClosingTag
Section 12.2.4.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:394
↓ 9 callersFunctionassertHTMLSpoonerized
(t *testing.T, s1 string, s2 string)
spoonerize/html_test.go:13
↓ 8 callersFunctionNewTokenizer
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 callersMethodString
String returns the atom's name.
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:24
↓ 7 callersFunctionLookup
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 callersMethodclearActiveFormattingElements
Section 12.2.3.3.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:355
↓ 7 callersFunctioninHeadIM
Section 12.2.5.4.4.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:564
↓ 6 callersMethodclearStackToContext
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 callersMethodstartTagIn
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 callersMethodRemoveChild
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 callersMethodTagName
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 callersMethodsetOriginalIM
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 callersMethodskipWhiteSpace
skipWhiteSpace skips past any white space.
Godeps/_workspace/src/golang.org/x/net/html/token.go:308
↓ 4 callersMethodClose
()
spoonerize/html.go:14
↓ 4 callersMethodRaw
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 callersFunctionaddTags
(s string)
spoonerize/html_test.go:9
↓ 4 callersFunctionadjustAttributeNames
(aa []Attribute, nameMap map[string]string)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:11
↓ 4 callersFunctionescape
(w writer, s string)
Godeps/_workspace/src/golang.org/x/net/html/escape.go:198
↓ 4 callersFunctionisSpecialElement
(element *Node)
Godeps/_workspace/src/golang.org/x/net/html/const.go:94
↓ 4 callersMethodreadRawEndTag
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 callersMethodreadUntilCloseAngle
readUntilCloseAngle reads until the next ">".
Godeps/_workspace/src/golang.org/x/net/html/token.go:645
↓ 4 callersMethodresetInsertionMode
Section 12.2.3.1, "reset the insertion mode".
Godeps/_workspace/src/golang.org/x/net/html/parse.go:415
↓ 3 callersFunctionParse
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 callersFunctionSpoonerize
(textBytes []byte)
spoonerize/spoonerize.go:106
↓ 3 callersFunctionSpoonerizeHTML
(r io.Reader, extraHTML string)
spoonerize/html.go:18
↓ 3 callersMethodTagAttr
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 callersMethodText
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 callersMethodToken
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 callersMethodaddFormattingElement
Section 12.2.3.3.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:308
↓ 3 callersFunctionadvanceUntil
(bytes []byte, i int, fn pred)
spoonerize/spoonerize.go:57
↓ 3 callersFunctionassertEqual
(t *testing.T, actual interface{}, expected interface{})
spoonerize/spoonerize_test.go:7
↓ 3 callersFunctionassertHTMLSpoonerizedExtra
(t *testing.T, s1 string, s2 string, extra string)
spoonerize/html_test.go:20
↓ 3 callersFunctionbenchmarkTokenizer
(b *testing.B, level int)
Godeps/_workspace/src/golang.org/x/net/html/token_test.go:699
↓ 3 callersMethodclone
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 callersFunctionconvertNewlines
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 callersMethodfosterParent
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 callersMethodinBodyEndTagFormatting
(tagAtom a.Atom)
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1038
↓ 3 callersMethodindexOfElementInScope
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 callersMethodtagString
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 callersFunctionunescape
unescape unescapes b's entities in-place, so that "a&lt;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 callersFunctionwriteQuoted
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 callersFunctionDetermineEncoding
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 callersFunctionEscapeString
EscapeString escapes special characters like "<" to become "&lt;". It escapes only five such characters: <, >, &, ' and ". UnescapeString(EscapeString
Godeps/_workspace/src/golang.org/x/net/html/escape.go:237
↓ 2 callersFunctionNewTokenizerFragment
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 callersMethodNextIsNotRawText
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 callersFunctionParseFragment
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 callersFunctionRender
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 callersMethodSetMaxBuf
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 callersFunctionUnescapeString
UnescapeString unescapes entities like "&lt;" to become "<". It unescapes a larger range of entities than EscapeString escapes. For example, "&aacute;
Godeps/_workspace/src/golang.org/x/net/html/escape.go:251
↓ 2 callersFunctionadjustForeignAttributes
(aa []Attribute)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:19
↓ 2 callersFunctioncheckNodeConsistency
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 callersFunctioncopyAttributes
copyAttributes copies attributes of src not found on dst to dst.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:684
↓ 2 callersFunctiondump
(n *Node)
Godeps/_workspace/src/golang.org/x/net/html/parse_test.go:186
↓ 2 callersFunctiondumpIndent
(w io.Writer, level int)
Godeps/_workspace/src/golang.org/x/net/html/parse_test.go:102
↓ 2 callersFunctionfromMetaElement
(s string)
Godeps/_workspace/src/golang.org/x/net/html/charset/charset.go:203
↓ 2 callersMethodgenerateImpliedEndTags
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 callersMethodhash
hash returns the two hashes for s.
Godeps/_workspace/src/golang.org/x/net/html/atom/gen.go:224
↓ 2 callersFunctionhtmlIntegrationPoint
(n *Node)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:34
↓ 2 callersMethodinBodyEndTagOther
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 callersFunctioninTableIM
Section 12.2.5.4.9.
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1207
↓ 2 callersMethodinsert
insert inserts a node at the given index.
Godeps/_workspace/src/golang.org/x/net/html/node.go:177
↓ 2 callersFunctionisUpper
(c byte)
spoonerize/spoonerize.go:20
↓ 2 callersFunctionlower
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 callersFunctionmatch
(s string, t []byte)
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:46
↓ 2 callersFunctionmathMLTextIntegrationPoint
(n *Node)
Godeps/_workspace/src/golang.org/x/net/html/foreign.go:59
↓ 2 callersMethodparse
()
Godeps/_workspace/src/golang.org/x/net/html/parse.go:1993
↓ 2 callersMethodparseCurrentToken
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 callersMethodpush
push attempts to push aside the entry in slot i.
Godeps/_workspace/src/golang.org/x/net/html/atom/gen.go:272
↓ 2 callersMethodreadTag
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 callersFunctionrender
(w writer, n *Node)
Godeps/_workspace/src/golang.org/x/net/html/render.go:60
↓ 2 callersMethodshouldFosterParent
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 callersMethodstring
()
Godeps/_workspace/src/golang.org/x/net/html/atom/atom.go:33
↓ 2 callersFunctiontoLower
(c byte)
spoonerize/spoonerize.go:28
↓ 2 callersFunctiontoUpper
(c byte)
spoonerize/spoonerize.go:24
↓ 2 callersFunctiontransformString
(t transform.Transformer, s string)
Godeps/_workspace/src/golang.org/x/net/html/charset/charset_test.go:18
↓ 2 callersFunctionunescapeEntity
unescapeEntity reads an entity like "&lt;" 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 callersMethodAllowCDATA
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 callersMethodBuffered
Buffered returns a slice containing data buffered but not yet tokenized.
Godeps/_workspace/src/golang.org/x/net/html/token.go:290
↓ 1 callersMethodInsertBefore
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 callersFunctionNewReader
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