Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 59 for stringify (0.34 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/windows-resources/groovy/src/hello/cpp/hello.cpp

    #include <iostream>
    #include <windows.h>
    #include <string>
    #include "hello.h"
    #include "resources.h"
    
    std::string LoadStringFromResource(UINT stringID)
    {
        HINSTANCE instance = GetModuleHandle("hello");
        WCHAR * pBuf = NULL;
        int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
        std::wstring wide = std::wstring(pBuf, len);
        return std::string(wide.begin(), wide.end());
    }
    
    void hello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 528 bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/gccgo_c.c

    // license that can be found in the LICENSE file.
    
    //go:build gccgo && !aix && !hurd
    
    #include <errno.h>
    #include <stdint.h>
    #include <unistd.h>
    
    #define _STRINGIFY2_(x) #x
    #define _STRINGIFY_(x) _STRINGIFY2_(x)
    #define GOSYM_PREFIX _STRINGIFY_(__USER_LABEL_PREFIX__)
    
    // Call syscall from C code because the gccgo support for calling from
    // Go to C does not support varargs functions.
    
    struct ret {
    	uintptr_t r;
    	uintptr_t err;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            collect([1, 2, 3] as Iterable, transformer { it * 2 }) == [2, 4, 6]
        }
    
        def "list stringize"() {
            expect:
            stringize([1, 2, 3]) == ["1", "2", "3"]
            stringize([]) == []
        }
    
        def "stringize"() {
            expect:
            stringize(["c", "b", "a"], new TreeSet<String>()) == ["a", "b", "c"] as Set
        }
    
        def "replacing"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  4. src/internal/trace/event.go

    		}
    	}
    	// N.B. Strings referenced by stack frames are validated
    	// early on, when reading the stacks in to begin with.
    
    	// Check strings.
    	for _, i := range spec.StringIDs {
    		id := stringID(e.base.args[i-1])
    		_, ok := e.table.strings.get(id)
    		if !ok {
    			return fmt.Errorf("found invalid string ID %d for event %s", id, spec.Name)
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  5. src/internal/trace/event/go122/event.go

    		Args:         []string{"dt", "reason_string", "stack"},
    		IsTimedEvent: true,
    		StackIDs:     []int{2},
    		StringIDs:    []int{1},
    	},
    	EvGoBlock: event.Spec{
    		Name:         "GoBlock",
    		Args:         []string{"dt", "reason_string", "stack"},
    		IsTimedEvent: true,
    		StackIDs:     []int{2},
    		StringIDs:    []int{1},
    	},
    	EvGoUnblock: event.Spec{
    		Name:         "GoUnblock",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/fixtures/app/DuplicateWindowsResourcesBaseNamesTestApp.groovy

    #include <iostream>
    #include <windows.h>
    #include <string>
    #include "hello.h"
    
    std::string LoadStringFromResource(UINT stringID)
    {
        HINSTANCE instance = GetModuleHandle("hello");
        WCHAR * pBuf = NULL;
        int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
        std::wstring wide = std::wstring(pBuf, len);
        return std::string(wide.begin(), wide.end());
    }
    
    void hello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. hack/boilerplate/boilerplate_test.py

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    import os
    import sys
    import unittest
    
    from io import StringIO
    
    import boilerplate
    
    class TestBoilerplate(unittest.TestCase):
        """
        Note: run this test from the hack/boilerplate directory.
    
        $ python -m unittest boilerplate_test
        """
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 09:05:26 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/WindowsResourceHelloWorldApp.groovy

    #include <iostream>
    #include <windows.h>
    #include <string>
    #include "hello.h"
    
    std::string LoadStringFromResource(UINT stringID)
    {
        HINSTANCE instance = GetModuleHandle("hello");
        WCHAR * pBuf = NULL;
        int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
        std::wstring wide = std::wstring(pBuf, len);
        return std::string(wide.begin(), wide.end());
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. src/internal/trace/oldtrace.go

    	}
    	var addErr error
    	add := func(id stringID, s string) {
    		if err := evt.strings.insert(id, s); err != nil && addErr == nil {
    			addErr = err
    		}
    	}
    	for id, s := range pr.InlineStrings {
    		nid := max + 1 + uint64(id)
    		it.inlineToStringID = append(it.inlineToStringID, nid)
    		add(stringID(nid), s)
    	}
    	max += uint64(len(pr.InlineStrings))
    	pr.InlineStrings = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/AttributesToMapConverter.java

    import java.util.Arrays;
    import java.util.Map;
    
    /**
     * Converts attributes to a stringy map preserving the order.
     */
    public class AttributesToMapConverter {
    
        private AttributesToMapConverter() {}
    
        /**
         * Converts attributes to a stringy map preserving the order.
         */
        public static Map<String, String> convertToMap(AttributeContainer attributes) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top