Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 63 for stringify (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/internal/trace/event/event.go

    	// is present, it is separated from the type with an underscore.
    	// The valid argument types and the Go types they map to are listed
    	// in the ArgTypes variable.
    	Args []string
    
    	// StringIDs indicates which of the arguments are string IDs.
    	StringIDs []int
    
    	// StackIDs indicates which of the arguments are stack IDs.
    	//
    	// The list is not sorted. The first index always refers to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. src/internal/trace/base.go

    type frequency float64
    
    // mul multiplies an unprocessed to produce a time in nanoseconds.
    func (f frequency) mul(t timestamp) Time {
    	return Time(float64(t) * float64(f))
    }
    
    // stringID is an index into the string table for a generation.
    type stringID uint64
    
    // extraStringID is an index into the extra string table for a generation.
    type extraStringID uint64
    
    // stackID is an index into the stack table for a generation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/diff/diff.go

    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    func legacyDiff(a, b interface{}) string {
    	return cmp.Diff(a, b)
    }
    
    // StringDiff diffs a and b and returns a human readable diff.
    // DEPRECATED: use github.com/google/go-cmp/cmp.Diff
    func StringDiff(a, b string) string {
    	return legacyDiff(a, b)
    }
    
    // ObjectDiff prints the diff of two go objects and fails if the objects
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go

    	if mapOfVal, ok := value.Value().(map[ref.Val]ref.Val); ok {
    		result := make(map[string]any)
    		for k, v := range mapOfVal {
    			stringKey, ok := k.Value().(string)
    			if !ok {
    				return nil, fmt.Errorf("map key %q is of type %t, not string", k, k)
    			}
    			result[stringKey] = v.Value()
    		}
    		return result, nil
    	}
    	return value.Value(), nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. src/internal/trace/generation.go

    			}
    			frames = append(frames, pc)
    
    			if _, ok := pcs[pc]; !ok {
    				pcs[pc] = frame{
    					pc:     pc,
    					funcID: stringID(funcID),
    					fileID: stringID(fileID),
    					line:   line,
    				}
    			}
    		}
    
    		// Add the stack to the map.
    		if err := stackTable.insert(stackID(id), stack{pcs: frames}); err != nil {
    			return err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractTypeMetadataWalker.java

                    checkNotNull(key, "Null keys in nested map '%s' are not allowed.", qualifiedName);
                    String stringKey = key.toString();
                    checkNotNullNestedCollectionValue(qualifiedName, stringKey, value);
                    handler.accept(stringKey, value);
                });
            }
    
            @SuppressWarnings("unchecked")
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top