Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for stringify (0.22 sec)

  1. test/typeparam/boundmethod.go

    	got := stringify(x)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	// For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    	// x2 := []StringInt[myint]{StringInt[myint](5), StringInt[myint](7), StringInt[myint](6)}
    	//
    	// // stringify on an instantiated type, whose bound method is associated with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 14:29:30 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. build/pause/windows/pause.c

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    #include <windows.h>
    #include <stdio.h>
    #include <string.h>
    
    #define STRINGIFY(x) #x
    #define VERSION_STRING(x) STRINGIFY(x)
    
    #ifndef VERSION
    #define VERSION HEAD
    #endif
    
    BOOL WINAPI CtrlHandler(DWORD fdwCtrlType)
    {
    	switch (fdwCtrlType)
    	{
    	case CTRL_C_EVENT:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 13:09:17 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. docs_src/generate_clients/tutorial004.js

                operation.operationId = newOperationId
              }
            }
          }
        }
    
        await fs.promises.writeFile(
          filePath,
          JSON.stringify(openapiContent, null, 2),
        )
        console.log('File successfully modified')
      } catch (err) {
        console.error('Error:', err)
      }
    }
    
    const filePath = './openapi.json'
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Mar 14 11:40:05 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go

    		return nil, err
    	}
    	newData, err := json.Marshal(objCopy)
    	if err != nil {
    		return nil, err
    	}
    
    	return jsonpatch.CreateMergePatch(oldData, newData)
    }
    
    // parseCommandArguments will stringify and return all environment arguments ie. a command run by a client
    // using the factory.
    // Set showSecrets false to filter out stuff like secrets.
    func parseCommandArguments(cmd *cobra.Command) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  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