Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for printstring (0.41 sec)

  1. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    func (r *TXTResource) GoString() string {
    	s := "dnsmessage.TXTResource{TXT: []string{"
    	if len(r.TXT) == 0 {
    		return s + "}}"
    	}
    	s += `"` + printString([]byte(r.TXT[0]))
    	for _, t := range r.TXT[1:] {
    		s += `", "` + printString([]byte(t))
    	}
    	return s + `"}}`
    }
    
    func unpackTXTResource(msg []byte, off int, length uint16) (TXTResource, error) {
    	txts := make([]string, 0, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/builtin.go

    			}
    			switch cs {
    			case " ":
    				on = typecheck.LookupRuntime("printsp")
    			case "\n":
    				on = typecheck.LookupRuntime("printnl")
    			default:
    				on = typecheck.LookupRuntime("printstring")
    			}
    		default:
    			badtype(ir.OPRINT, n.Type(), nil)
    			continue
    		}
    
    		r := ir.NewCallExpr(base.Pos, ir.OCALL, on, nil)
    		if params := on.Type().Params(); len(params) > 0 {
    			t := params[0].Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    case func(int) float64:
    	printFunction(i)                       // type of i is func(int) float64
    case bool, string:
    	printString("type is bool or string")  // type of i is type of x (interface{})
    default:
    	printString("don't know the type")     // type of i is type of x (interface{})
    }
    </pre>
    
    <p>
    could be rewritten:
    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. doc/go_spec.html

    case func(int) float64:
    	printFunction(i)                       // type of i is func(int) float64
    case bool, string:
    	printString("type is bool or string")  // type of i is type of x (interface{})
    default:
    	printString("don't know the type")     // type of i is type of x (interface{})
    }
    </pre>
    
    <p>
    could be rewritten:
    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/ModelDslIntegrationTest.groovy

                        printStrings(Task) {
                            doLast {
                                println "strings: " + strings
                            }
                        }
                    }
                    strings {
                        add($('foo'))
                    }
                }
    '''
    
            then:
            succeeds "printStrings"
            output.contains "strings: [foo]"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/NestedModelDslUsageIntegrationSpec.groovy

                    model {
                        strings {
                            add "foo"
                        }
                    }
                }
    
            """
    
            then:
            succeeds "printStrings"
            output.contains "strings: [foo]"
    
            where:
            code << [
                    "subprojects",
                    "project(':a')",
                    "if (true)"
            ]
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-printers.h

    #if GTEST_HAS_GLOBAL_STRING
    GTEST_API_ void PrintStringTo(const ::string&s, ::std::ostream* os);
    inline void PrintTo(const ::string& s, ::std::ostream* os) {
      PrintStringTo(s, os);
    }
    #endif  // GTEST_HAS_GLOBAL_STRING
    
    GTEST_API_ void PrintStringTo(const ::std::string&s, ::std::ostream* os);
    inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
      PrintStringTo(s, os);
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 30.9K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/failure/FailurePrinterTest.groovy

            def f = toFailure(e)
    
            expect:
            FailurePrinter.printToString(f) == getTraceString(e)
        }
    
        def "prints same as JVM for an exception with cause"() {
            def e = new RuntimeException("BOOM", SimulatedJavaException.simulateDeeperException())
            def f = toFailure(e)
    
            expect:
            FailurePrinter.printToString(f) == getTraceString(e)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 23:12:10 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/components/subtyping/FirStandaloneNormalAnalysisSourceModuleSubtypingTestGenerated.java

        runTest("analysis/analysis-api/testData/components/subtyping/subtypingAndEquality/IntInt.kt");
      }
    
      @Test
      @TestMetadata("IntString.kt")
      public void testIntString() {
        runTest("analysis/analysis-api/testData/components/subtyping/subtypingAndEquality/IntString.kt");
      }
    
      @Test
      @TestMetadata("StringBuilderTypeAlias.kt")
      public void testStringBuilderTypeAlias() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Apr 29 15:15:02 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/subtyping/FirIdeNormalAnalysisSourceModuleLenientSubtypingTestGenerated.java

        runTest("analysis/analysis-api/testData/components/subtyping/subtypingAndEquality/IntInt.kt");
      }
    
      @Test
      @TestMetadata("IntString.kt")
      public void testIntString() {
        runTest("analysis/analysis-api/testData/components/subtyping/subtypingAndEquality/IntString.kt");
      }
    
      @Test
      @TestMetadata("StringBuilderTypeAlias.kt")
      public void testStringBuilderTypeAlias() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Apr 29 15:15:02 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top