_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c179200 | // isBoolean returns true if the type can be parsed from a single string | |
c179201 | // NewFromMap returns a new tree containing the keys
// from an existing map | |
c179202 | // Insert is used to add a newentry or update
// an existing entry. Returns if updated. | |
c179203 | // Delete is used to delete a key, returning the previous
// value and if it was deleted | |
c179204 | // DeletePrefix is used to delete the subtree under a prefix
// Returns how many nodes were deleted
// Use this to delete large subtrees efficiently | |
c179205 | // Get is used to lookup a specific key, returning
// the value and if it was found | |
c179206 | // recursiveWalk is used to do a pre-order walk of a node
// recursively. Returns true if the walk should be aborted | |
c179207 | // ToMap is used to walk the tree and convert it into a map | |
c179208 | // get IP type and calculate IP number; calculates index too if exists | |
c179209 | // read unsigned 32-bit integer | |
c179210 | // read unsigned 128-bit integer | |
c179211 | // populate record with message | |
c179212 | // for debugging purposes | |
c179213 | // Main draws a left hand and ear of a gopher. Afterwards it returns
// the filename. This should only be used during testing. | |
c179214 | // SaveToPdfFile creates and saves a pdf document to a file | |
c179215 | // CubicCurveTo adds a cubic bezier curve to the current path | |
c179216 | // ArcTo adds an arc to the path | |
c179217 | // Returns new Path with flipped y axes | |
c179218 | // NewGlyphCache initializes a GlyphCache | |
c179219 | // Fetch fetches a glyph from the cache, calling renderGlyph first if it doesn't already exist | |
c179220 | // renderGlyph renders a glyph then caches and returns it | |
c179221 | // Copy Returns a copy of a Glyph | |
c179222 | // Fill copies a glyph from the cache, and fills it | |
c179223 | // Main draws vertically spaced lines and returns the filename.
// This should only be used during testing. | |
c179224 | // Draw vertically spaced lines | |
c179225 | // Paint satisfies the Painter interface by painting ss onto an image.RGBA. | |
c179226 | // NewRGBAPainter creates a new RGBAPainter for the given image. | |
c179227 | // GetStringBounds returns the approximate pixel bounds of the string s at x, y.
// The the left edge of the em square of the first character of s
// and the baseline intersect at 0, 0 in the returned coordinates.
// Therefore the top and left coordinates may well be negative. | |
c179228 | // ClearRect fills the specified rectangle with a default transparent color | |
c179229 | // Add text element to svg and returns its expected width | |
c179230 | // Creates new group from current context
// attach it to svg and return | |
c179231 | // creates new mask attached to svg | |
c179232 | // Embed svg font definition to svg tree itself
// Or update existing if already exists for curent font data | |
c179233 | // GetFontName gets the current FontData with fontSize as a string | |
c179234 | /**
* Create a new Graphic context from an image
*/ | |
c179235 | // NewFolderFontCache creates FolderFontCache | |
c179236 | // NewSyncFolderFontCache creates SyncFolderFontCache | |
c179237 | // Main draws a rotated face of the gopher. Afterwards it returns
// the filename. This should only be used during testing. | |
c179238 | // NewPdf creates a new pdf document with the draw2d fontfolder, adds
// a page and set fill color to white. | |
c179239 | // clearRect draws a white rectangle | |
c179240 | // NewGraphicContext creates a new pdf GraphicContext | |
c179241 | // Clear draws a white rectangle over the whole page | |
c179242 | // GetStringBounds returns the approximate pixel bounds of the string s at x, y.
// The left edge of the em square of the first character of s
// and the baseline intersect at 0, 0 in the returned coordinates.
// Therefore the top and left coordinates may well be negative. | |
c179243 | // CreateStringPath creates a path from the string s at x, y, and returns the string width. | |
c179244 | // FillStringAt draws a string at x, y | |
c179245 | // overwrite StackGraphicContext methods
// SetStrokeColor sets the stroke color | |
c179246 | // SetFillColor sets the fill and text color | |
c179247 | // SetLineDash sets the line dash pattern | |
c179248 | // SetLineWidth sets the line width | |
c179249 | // Main draws "Hello World" and returns the filename. This should only be
// used during testing. | |
c179250 | // Draw "Hello World" | |
c179251 | // SaveToPngFile create and save an image to a file using PNG format | |
c179252 | // LoadFromPngFile Open a png file | |
c179253 | // Resource returns a resource filename for testing. | |
c179254 | // Output returns the output filename for testing. | |
c179255 | // Main draws the tiger | |
c179256 | // Draw a tiger | |
c179257 | // Main draws geometry and returns the filename. This should only be
// used during testing. | |
c179258 | // Bubble draws a text balloon. | |
c179259 | // Dash draws a line with a dash pattern | |
c179260 | // CubicCurve draws a cubic curve with its control points. | |
c179261 | // FillStroke first fills and afterwards strokes a path. | |
c179262 | // FillStyle demonstrates the difference between even odd and non zero winding rule. | |
c179263 | // PathTransform scales a path differently in horizontal and vertical direction. | |
c179264 | // Star draws many lines from a center. | |
c179265 | // Draw all figures in a nice 4x3 grid. | |
c179266 | // ConvertPath converts a paths to the pdf api | |
c179267 | // Main draws the different line caps and joins.
// This should only be used during testing. | |
c179268 | // Draw a line with an angle with specified line cap and join | |
c179269 | // DrawContour draws the given closed contour at the given sub-pixel offset. | |
c179270 | // DrawImage draws an image into dest using an affine transformation matrix, an op and a filter | |
c179271 | // Main draws the image frame and returns the filename.
// This should only be used during testing. | |
c179272 | // Draw the image frame with certain parameters. | |
c179273 | // Draw the droid on a certain position. | |
c179274 | // ChecksumString32S returns the checksum of the input data, without creating a copy, with the specific seed. | |
c179275 | // ChecksumString64S returns the checksum of the input data, without creating a copy, with the specific seed. | |
c179276 | // NewS32 creates a new hash.Hash32 computing the 32bit xxHash checksum starting with the specific seed. | |
c179277 | // NewS64 creates a new hash.Hash64 computing the 64bit xxHash checksum starting with the specific seed. | |
c179278 | // borrowed from cespare | |
c179279 | // Checksum32S returns the checksum of the input bytes with the specific seed. | |
c179280 | // Checksum64S returns the 64bit xxhash checksum for a single input | |
c179281 | // Returns the current stage in the "daemonization process", that's kept in
// an environment variable. The variable is instrumented with a digital
// signature, to avoid misbehavior if it was present in the user's
// environment. The original value is restored after the last stage, so that
// there's no final effect o... | |
c179282 | // New returns plain glg instance | |
c179283 | // Get returns singleton glg instance | |
c179284 | // SetMode sets glg logging mode | |
c179285 | // SetPrefix set Print logger prefix | |
c179286 | // GetCurrentMode returns current logging mode | |
c179287 | // InitWriter is initialize glg writer | |
c179288 | // SetWriter sets writer to glg std writers | |
c179289 | // SetLevelColor sets the color for each level | |
c179290 | // SetLevelWriter sets writer to glg std writer per logging level | |
c179291 | // AddStdLevel adds std log level and returns LEVEL | |
c179292 | // EnableColor enables color output | |
c179293 | // EnableLevelColor enables color output | |
c179294 | // DisableLevelColor disables color output | |
c179295 | // RawString returns raw log string exclude time & tags | |
c179296 | // TagStringToLevel converts level string to Glg.LEVEL | |
c179297 | // Println outputs fixed line Print log | |
c179298 | // Fatal outputs Failed log and exit program | |
c179299 | // Fatalf outputs formatted Failed log and exit program |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.