_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c16300 | // buildProxyRequest creates a request object for the proxy request, it will ensure that
// the original request headers are preserved as well as setting openfaas system headers | |
c16301 | // copyHeaders clones the header values from the source into the destination. | |
c16302 | // getContentType resolves the correct Content-Type for a proxied function. | |
c16303 | // writeError sets the response status code and write formats the provided message as the
// response body | |
c16304 | // Serve load your handlers into the correct OpenFaaS route spec. This function is blocking. | |
c16305 | // setDefault sets the default value for UI struct. | |
c16306 | // validateFunc returns ValidateFunc. If it's specified by
// user it returns it. If not returns default function. | |
c16307 | // readOpts returns readOptions from given the Options. | |
c16308 | // read reads input from UI.Reader | |
c16309 | // Set is a thread-safe way to add new items to the map | |
c16310 | // Get is a thread-safe way to lookup items
// Every lookup, also touches the item, hence extending it's life | |
c16311 | // NewCache is a helper to create instance of the Cache struct | |
c16312 | // OpcodeDescription is a humman readable string of the specific offset | |
c16313 | // String returns the captured text as a String | |
c16314 | // Runes returns the captured text as a rune slice | |
c16315 | // isMatched tells if a group was matched by capnum | |
c16316 | // matchIndex returns the index of the last specified matched group by capnum | |
c16317 | // matchLength returns the length of the last specified matched group by capnum | |
c16318 | // GroupByName returns a group based on the name of the group, or nil if the group name does not exist | |
c16319 | // GroupByNumber returns a group based on the number of the group, or nil if the group number does not exist | |
c16320 | // Compile parses a regular expression and returns, if successful,
// a Regexp object that can be used to match against text. | |
c16321 | // MustCompile is like Compile but panics if the expression cannot be parsed.
// It simplifies safe initialization of global variables holding compiled regular
// expressions. | |
c16322 | // FindStringMatch searches the input string for a Regexp match | |
c16323 | // FindRunesMatch searches the input rune slice for a Regexp match | |
c16324 | // FindStringMatchStartingAt searches the input string for a Regexp match starting at the startAt index | |
c16325 | // FindRunesMatchStartingAt searches the input rune slice for a Regexp match starting at the startAt index | |
c16326 | // FindNextMatch returns the next match in the same input string as the match parameter.
// Will return nil if there is no next match or if given a nil match. | |
c16327 | // MatchString return true if the string matches the regex
// error will be set if a timeout occurs | |
c16328 | // MatchRunes return true if the runes matches the regex
// error will be set if a timeout occurs | |
c16329 | // GetGroupNames Returns the set of strings used to name capturing groups in the expression. | |
c16330 | // GetGroupNumbers returns the integer group numbers corresponding to a group name. | |
c16331 | // GroupNameFromNumber retrieves a group name that corresponds to a group number.
// It will return "" for and unknown group number. Unnamed groups automatically
// receive a name that is the decimal string equivalent of its number. | |
c16332 | // GroupNumberFromName returns a group number that corresponds to a group name.
// Returns -1 if the name is not a recognized group name. Numbered groups
// automatically get a group name that is the decimal string equivalent of its number. | |
c16333 | // The top level RegexCode generator. It does a depth-first walk
// through the tree and calls EmitFragment to emits code before
// and after each child of an interior node, and at each leaf.
//
// It runs two passes, first to count the size of the generated
// code, and second to generate the code.
//
// We should tim... | |
c16334 | // Fixes up a jump instruction at the specified offset
// so that it jumps to the specified jumpDest. | |
c16335 | // Returns an index in the set table for a charset
// uses a map to eliminate duplicates. | |
c16336 | // Returns an index in the string table for a string.
// uses a map to eliminate duplicates. | |
c16337 | // When generating code on a regex that uses a sparse set
// of capture slots, we hash them to a dense set of indices
// for an array of capture slots. Instead of doing the hash
// at match time, it's done at compile time, here. | |
c16338 | // Emits a one-argument operation. | |
c16339 | // increase the size of stack and track storage | |
c16340 | // Save a number on the longjump unrolling stack | |
c16341 | // Remove a number from the longjump unrolling stack | |
c16342 | // get the ith element down on the backtracking stack | |
c16343 | // Push onto the grouping stack | |
c16344 | // get the ith element down on the grouping stack | |
c16345 | // revert the last capture | |
c16346 | // decide whether the pos
// at the specified index is a boundary or not. It's just not worth
// emitting inline code for this logic. | |
c16347 | // getRunner returns a run to use for matching re.
// It uses the re's runner cache if possible, to avoid
// unnecessary allocation. | |
c16348 | // Copy makes a deep copy to prevent accidental mutation of a set | |
c16349 | // gets a human-readable description for a set string | |
c16350 | // mapHashFill converts a charset into a buffer for use in maps | |
c16351 | // CharDescription Produces a human-readable description for a single character. | |
c16352 | // Merges new ranges to our own | |
c16353 | // Logic to reduce a character class to a unique, sorted form. | |
c16354 | // Adds to the class any lowercase versions of characters already
// in the class. Used for case-insensitivity. | |
c16355 | // Parse converts a regex string into a parse tree | |
c16356 | // CountCaptures is a prescanner for deducing the slots used for
// captures by doing a partial tokenization of the pattern. | |
c16357 | // scans backslash specials and basics | |
c16358 | // Returns ReNode type for zero-length assertions with a \ code. | |
c16359 | // Scans whitespace or x-mode comments. | |
c16360 | // Scans cimsx-cimsx option string, stops at the first unrecognized char. | |
c16361 | // Scans \ code for escape codes that map to single unicode chars. | |
c16362 | // Grabs and converts an ascii control character | |
c16363 | // Scan hex digits until we hit a closing brace.
// Non-hex digits, hex value too large for UTF-8, or running out of chars are errors | |
c16364 | // Returns n <= 0xF for a hex digit. | |
c16365 | // Returns the char at the right of the current parsing position and advances to the right. | |
c16366 | // Returns the char i chars right of the current parsing position. | |
c16367 | // True if the capture slot was noted | |
c16368 | // Looks up the slot number for a given name | |
c16369 | // Sets the current unit to a single char node | |
c16370 | // Sets the current unit to a single inverse-char node | |
c16371 | // Sets the current unit to a single set node | |
c16372 | // Sets the current unit to an assertion of the specified type | |
c16373 | // Pops the option stack, but keeps the current options unchanged. | |
c16374 | // Recalls options from the stack. | |
c16375 | // Saves options on a stack. | |
c16376 | // Add a string to the last concatenate. | |
c16377 | // removes children including the start but not the end index | |
c16378 | // Pass type as OneLazy or OneLoop | |
c16379 | // Nested repeaters just get multiplied with each other if they're not
// too lumpy | |
c16380 | // Simple optimization. If a concatenation or alternation has only
// one child strip out the intermediate node. If it has zero children,
// turn it into an empty. | |
c16381 | // Simple optimization. If a set is a singleton, an inverse singleton,
// or empty, it's transformed accordingly. | |
c16382 | // It takes a RegexTree and computes the set of chars that can start it. | |
c16383 | // We also use a stack of RegexFC objects.
// This is the push. | |
c16384 | // repeat the rune r, c times... up to the max of MaxPrefixSize | |
c16385 | // Dump returns the contents of the filter as a human readable string | |
c16386 | // Scan uses the Boyer-Moore algorithm to find the first occurrence
// of the specified string within text, beginning at index, and
// constrained within beglimit and endlimit.
//
// The direction and case-sensitivity of the match is determined
// by the arguments to the RegexBoyerMoore constructor. | |
c16387 | // When a regex is anchored, we can do a quick IsMatch test instead of a Scan | |
c16388 | // anchorDescription returns a human-readable description of the anchors | |
c16389 | // NewReplacerData will populate a reusable replacer data struct based on the given replacement string
// and the capture group data from a regexp | |
c16390 | // Given a Match, emits into the StringBuilder the evaluated
// substitution pattern. | |
c16391 | // Fuzz is the input point for go-fuzz | |
c16392 | // Listen starts the server on the network network and address addr.
// Once the server has started, a value is sent to listening channel. | |
c16393 | // Subsystems interrupts watching current subsystems, consumes all
// outstanding values from Event and Error channels, and then
// changes the subsystems to watch for to names. | |
c16394 | // Close closes Event and Error channels, and the connection to MPD server. | |
c16395 | // Close terminates the connection with MPD. | |
c16396 | // PlayID plays the song identified by id. If id is negative, start playing
// at the current position in playlist. | |
c16397 | // SeekPos seeks to the position d of the song at playlist position pos. | |
c16398 | // SeekSongID seeks to the position d of the song identified by id. | |
c16399 | // SeekCur seeks to the position d within the current song.
// If relative is true, then the time is relative to the current playing position. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.