_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c19400 | train | // CreateDispTypeInfo provides default ITypeInfo implementation for IDispatch.
//
// This will not handle the full implementation of the interface. | {
"resource": ""
} | ||
c19401 | train | // copyMemory moves location of a block of memory. | {
"resource": ""
} | ||
c19402 | train | // GetUserDefaultLCID retrieves current user default locale. | {
"resource": ""
} | ||
c19403 | train | // DispatchMessage to window procedure. | {
"resource": ""
} | ||
c19404 | train | // GetVariantDate converts COM Variant Time value to Go time.Time. | {
"resource": ""
} | ||
c19405 | train | // String convert EXCEPINFO to string. | {
"resource": ""
} | ||
c19406 | train | // Error implements error interface and returns error string. | {
"resource": ""
} | ||
c19407 | train | // GetSingleIDOfName is a helper that returns single display ID for IDispatch name.
//
// This replaces the common pattern of attempting to get a single name from the list of available
// IDs. It gives the first ID, if it is available. | {
"resource": ""
} | ||
c19408 | train | // InvokeWithOptionalArgs accepts arguments as an array, works like Invoke.
//
// Accepts name and will attempt to retrieve Display ID to pass to Invoke.
//
// Passing params as an array is a workaround that could be fixed in later versions of Go that
// prevent passing empty params. During testing it was discovered th... | {
"resource": ""
} | ||
c19409 | train | // CallMethod invokes named function with arguments on object. | {
"resource": ""
} | ||
c19410 | train | // GetProperty retrieves the property with the name with the ability to pass arguments.
//
// Most of the time you will not need to pass arguments as most objects do not allow for this
// feature. Or at least, should not allow for this feature. Some servers don't follow best practices
// and this is provided for those ... | {
"resource": ""
} | ||
c19411 | train | // PutProperty attempts to mutate a property in the object. | {
"resource": ""
} | ||
c19412 | train | // Create IUnknown object based first on ProgId and then from String. | {
"resource": ""
} | ||
c19413 | train | // Load COM object from list of programIDs or strings. | {
"resource": ""
} | ||
c19414 | train | // Dispatch returns Dispatch object. | {
"resource": ""
} | ||
c19415 | train | // Call method on IDispatch with parameters. | {
"resource": ""
} | ||
c19416 | train | // MustCall method on IDispatch with parameters. | {
"resource": ""
} | ||
c19417 | train | // Get property on IDispatch with parameters. | {
"resource": ""
} | ||
c19418 | train | // MustGet property on IDispatch with parameters. | {
"resource": ""
} | ||
c19419 | train | // Set property on IDispatch with parameters. | {
"resource": ""
} | ||
c19420 | train | // MustSet property on IDispatch with parameters. | {
"resource": ""
} | ||
c19421 | train | // GetId retrieves ID of name on IDispatch. | {
"resource": ""
} | ||
c19422 | train | // GetIds retrieves all IDs of names on IDispatch. | {
"resource": ""
} | ||
c19423 | train | // Invoke IDispatch on DisplayID of dispatch type with parameters.
//
// There have been problems where if send cascading params..., it would error
// out because the parameters would be empty. | {
"resource": ""
} | ||
c19424 | train | // Connect initializes COM and attempts to load IUnknown based on given names. | {
"resource": ""
} | ||
c19425 | train | // safeArrayGetElementString retrieves element at given index and converts to string. | {
"resource": ""
} | ||
c19426 | train | // ClassIDFrom retrieves class ID whether given is program ID or application string.
//
// Helper that provides check against both Class ID from Program ID and Class ID from string. It is
// faster, if you know which you are using, to use the individual functions, but this will check
// against available functions for ... | {
"resource": ""
} | ||
c19427 | train | // BytePtrToString converts byte pointer to a Go string. | {
"resource": ""
} | ||
c19428 | train | // LpOleStrToString converts COM Unicode to Go string. | {
"resource": ""
} | ||
c19429 | train | // BstrToString converts COM binary string to Go string. | {
"resource": ""
} | ||
c19430 | train | // lpOleStrLen returns the length of Unicode string. | {
"resource": ""
} | ||
c19431 | train | // convertHresultToError converts syscall to error, if call is unsuccessful. | {
"resource": ""
} | ||
c19432 | train | // errstr converts error code to string. | {
"resource": ""
} | ||
c19433 | train | // LOGetCellString returns the displayed value | {
"resource": ""
} | ||
c19434 | train | // LOSetCellString sets the text value of a cell | {
"resource": ""
} | ||
c19435 | train | // LOSetCellValue sets the numeric value of a cell | {
"resource": ""
} | ||
c19436 | train | // LONewSpreadsheet creates a new spreadsheet in a new window and returns a document handle. | {
"resource": ""
} | ||
c19437 | train | // This example creates a new spreadsheet, reads and modifies cell values and style. | {
"resource": ""
} | ||
c19438 | train | // NewErrorWithDescription creates new COM error with HResult and description. | {
"resource": ""
} | ||
c19439 | train | // NewErrorWithSubError creates new COM error with parent error. | {
"resource": ""
} | ||
c19440 | train | // String description, either manually set or format message with error code. | {
"resource": ""
} | ||
c19441 | train | // DeleteHString deletes HString. | {
"resource": ""
} | ||
c19442 | train | // String returns Go string value of HString. | {
"resource": ""
} | ||
c19443 | train | // ClassIDFrom retrieves class ID whether given is program ID or application string. | {
"resource": ""
} | ||
c19444 | train | // CreateObject creates object from programID based on interface type.
//
// Only supports IUnknown.
//
// Program ID can be either program ID or application string. | {
"resource": ""
} | ||
c19445 | train | // GetActiveObject retrieves active object for program ID and interface ID based
// on interface type.
//
// Only supports IUnknown.
//
// Program ID can be either program ID or application string. | {
"resource": ""
} | ||
c19446 | train | // CallMethod calls method on IDispatch with parameters. | {
"resource": ""
} | ||
c19447 | train | // MustCallMethod calls method on IDispatch with parameters or panics. | {
"resource": ""
} | ||
c19448 | train | // GetProperty retrieves property from IDispatch. | {
"resource": ""
} | ||
c19449 | train | // MustGetProperty retrieves property from IDispatch or panics. | {
"resource": ""
} | ||
c19450 | train | // PutProperty mutates property. | {
"resource": ""
} | ||
c19451 | train | // MustPutProperty mutates property or panics. | {
"resource": ""
} | ||
c19452 | train | // PutPropertyRef mutates property reference. | {
"resource": ""
} | ||
c19453 | train | // MustPutPropertyRef mutates property reference or panics. | {
"resource": ""
} | ||
c19454 | train | // Draws any non-transparent pixels into target | {
"resource": ""
} | ||
c19455 | train | // Draws pixels into target, including transparent ones. | {
"resource": ""
} | ||
c19456 | train | // Move the cursor to the beginning of the line and up rows | {
"resource": ""
} | ||
c19457 | train | // NewPrinter provides an Printer. If drawer is nil, draw.FloydSteinberg is used. | {
"resource": ""
} | ||
c19458 | train | // EncodeJSON encodes the iterator as a JSON array of records. | {
"resource": ""
} | ||
c19459 | train | // EncodeLDJSON encodes the iterator as a line delimited stream
// of records. | {
"resource": ""
} | ||
c19460 | train | // cleanParams removes any key with empty string values. | {
"resource": ""
} | ||
c19461 | train | // Scan takes a record and scans the values of a row into the record. | {
"resource": ""
} | ||
c19462 | train | // Connect connects to a database given a driver name and set of connection parameters.
// Each database supports a different set of connection parameters, however the few
// that are common are standardized.
//
// - `host` - The database host.
// - `port` - The database port.
// - `user` - The username to authenticate... | {
"resource": ""
} | ||
c19463 | train | // Execute takes a database instance, SQL statement, and parameters and executes the query
// returning the resulting rows. | {
"resource": ""
} | ||
c19464 | train | // Shutdown closes all persisted database connections. | {
"resource": ""
} | ||
c19465 | train | // parseMimetype parses a mimetype from the Accept header. | {
"resource": ""
} | ||
c19466 | train | // MatchFold is a case-insensitive version of Match. | {
"resource": ""
} | ||
c19467 | train | // Find will return a list of strings in targets that fuzzy matches source. | {
"resource": ""
} | ||
c19468 | train | // FindFold is a case-insensitive version of Find. | {
"resource": ""
} | ||
c19469 | train | // RankMatchFold is a case-insensitive version of RankMatch. | {
"resource": ""
} | ||
c19470 | train | // RankFind is similar to Find, except it will also rank all matches using
// Levenshtein distance. | {
"resource": ""
} | ||
c19471 | train | // RankFindFold is a case-insensitive version of RankFind. | {
"resource": ""
} | ||
c19472 | train | // TranslateRune return translated rune and true if r matches the from pattern.
// If r doesn't match the pattern, original r is returned and translated is false. | {
"resource": ""
} | ||
c19473 | train | // WordCount returns number of words in a string.
//
// Word is defined as a locale dependent string containing alphabetic characters,
// which may also contain but not start with `'` and `-` characters. | {
"resource": ""
} | ||
c19474 | train | // Checks r is a letter but not CJK character. | {
"resource": ""
} | ||
c19475 | train | // SwapCase will swap characters case from upper to lower or lower to upper. | {
"resource": ""
} | ||
c19476 | train | // FirstRuneToUpper converts first rune to upper case if necessary. | {
"resource": ""
} | ||
c19477 | train | // FirstRuneToLower converts first rune to lower case if necessary. | {
"resource": ""
} | ||
c19478 | train | // ShuffleSource randomizes runes in a string with given random source. | {
"resource": ""
} | ||
c19479 | train | // Reverse a utf8 encoded string. | {
"resource": ""
} | ||
c19480 | train | // Partition splits a string by sep into three parts.
// The return value is a slice of strings with head, match and tail.
//
// If str contains sep, for example "hello" and "l", Partition returns
// "he", "l", "lo"
//
// If str doesn't contain sep, for example "hello" and "x", Partition returns
// "hello", "",... | {
"resource": ""
} | ||
c19481 | train | // LastPartition splits a string by last instance of sep into three parts.
// The return value is a slice of strings with head, match and tail.
//
// If str contains sep, for example "hello" and "l", LastPartition returns
// "hel", "l", "o"
//
// If str doesn't contain sep, for example "hello" and "x", LastPartitio... | {
"resource": ""
} | ||
c19482 | train | // Insert src into dst at given rune index.
// Index is counted by runes instead of bytes.
//
// If index is out of range of dst, panic with out of range. | {
"resource": ""
} | ||
c19483 | train | // Scrub scrubs invalid utf8 bytes with repl string.
// Adjacent invalid bytes are replaced only once. | {
"resource": ""
} | ||
c19484 | train | // WordSplit splits a string into words. Returns a slice of words.
// If there is no word in a string, return nil.
//
// Word is defined as a locale dependent string containing alphabetic characters,
// which may also contain but not start with `'` and `-` characters. | {
"resource": ""
} | ||
c19485 | train | // Lazy initialize a buffer. | {
"resource": ""
} | ||
c19486 | train | // Run the component process | {
"resource": ""
} | ||
c19487 | train | // NewInputGuard returns a guard for a given number of inputs | {
"resource": ""
} | ||
c19488 | train | // Complete is called when a port is closed and returns true when all the ports have been closed | {
"resource": ""
} | ||
c19489 | train | // ParseJSON converts a JSON network definition string into
// a flow.Graph object that can be run or used in other networks | {
"resource": ""
} | ||
c19490 | train | // LoadJSON loads a JSON graph definition file into
// a flow.Graph object that can be run or used in other networks | {
"resource": ""
} | ||
c19491 | train | // RegisterJSON registers an external JSON graph definition as a component
// that can be instantiated at run-time using component Factory.
// It returns true on success or false if component name is already taken. | {
"resource": ""
} | ||
c19492 | train | // NewFactory creates a new component Factory instance | {
"resource": ""
} | ||
c19493 | train | // Register registers a component so that it can be instantiated at run-time | {
"resource": ""
} | ||
c19494 | train | // Annotate adds human-readable documentation for a component to the runtime | {
"resource": ""
} | ||
c19495 | train | // Unregister removes a component with a given name from the component registry and returns true
// or returns false if no such component is registered. | {
"resource": ""
} | ||
c19496 | train | // Create creates a new instance of a component registered under a specific name. | {
"resource": ""
} | ||
c19497 | train | // ConnectBuf connects a sender to a receiver using a channel with a buffer of a given size.
// It returns true on success or panics and returns false if error occurs. | {
"resource": ""
} | ||
c19498 | train | // getProcPort finds an assignable port field in one of the subprocesses | {
"resource": ""
} | ||
c19499 | train | // findExistingChan returns a channel attached to receiver if it already exists among connections | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.