Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 82 for appendRune (0.17 sec)

  1. src/expvar/expvar.go

    			default:
    				b = append(b, '\\', 'u', hex[(r>>12)&0xf], hex[(r>>8)&0xf], hex[(r>>4)&0xf], hex[(r>>0)&0xf])
    			}
    		case r < utf8.RuneSelf:
    			b = append(b, byte(r))
    		default:
    			b = utf8.AppendRune(b, r)
    		}
    	}
    	b = append(b, '"')
    	return b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/unicode/utf8/utf8.go

    		p[1] = tx | byte(r>>12)&maskx
    		p[2] = tx | byte(r>>6)&maskx
    		p[3] = tx | byte(r)&maskx
    		return 4
    	}
    }
    
    // AppendRune appends the UTF-8 encoding of r to the end of p and
    // returns the extended buffer. If the rune is out of range,
    // it appends the encoding of [RuneError].
    func AppendRune(p []byte, r rune) []byte {
    	// This function is inlineable for fast handling of ASCII.
    	if uint32(r) <= rune1Max {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. api/go1.18.txt

    pkg text/template/parse, type ContinueNode struct, Line int
    pkg text/template/parse, type ContinueNode struct, embedded NodeType
    pkg text/template/parse, type ContinueNode struct, embedded Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. src/fmt/format.go

    	// of a uint64 to a rune may lose precision that indicates an overflow.
    	r := rune(c)
    	if c > utf8.MaxRune {
    		r = utf8.RuneError
    	}
    	buf := f.intbuf[:0]
    	f.pad(utf8.AppendRune(buf, r))
    }
    
    // fmtQc formats an integer as a single-quoted, escaped Go character constant.
    // If the character is not valid Unicode, it will print '\ufffd'.
    func (f *fmt) fmtQc(c uint64) {
    	r := rune(c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/fmt/print.go

    		}
    	}
    	if w, ok := state.Width(); ok {
    		b = strconv.AppendInt(b, int64(w), 10)
    	}
    	if p, ok := state.Precision(); ok {
    		b = append(b, '.')
    		b = strconv.AppendInt(b, int64(p), 10)
    	}
    	b = utf8.AppendRune(b, verb)
    	return string(b)
    }
    
    // Use simple []byte instead of bytes.Buffer to avoid large dependency.
    type buffer []byte
    
    func (b *buffer) write(p []byte) {
    	*b = append(*b, p...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  6. src/internal/poll/fd_windows.go

    						break
    					}
    					r = utf8.RuneError
    				} else {
    					r = utf16.DecodeRune(r, rune(uint16s[i+1]))
    					if r != utf8.RuneError {
    						i++
    					}
    				}
    			}
    			buf = utf8.AppendRune(buf, r)
    		}
    		fd.readbyte = buf
    		fd.readbyteOffset = 0
    		if nw == 0 {
    			break
    		}
    	}
    
    	src := fd.readbyte[fd.readbyteOffset:]
    	var i int
    	for i = 0; i < len(src) && i < len(b); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/substututorFactory/AbstractSubstitutorBuilderTest.kt

                prettyPrint {
                    appendLine("${KtDeclaration::class.simpleName}: ${declaration::class.simpleName}")
    
                    appendLine("Symbol:")
                    appendLine(symbol.render(KaDeclarationRendererForDebug.WITH_QUALIFIED_NAMES))
    
                    appendLine()
    
                    appendLine("Substitutor:")
                    appendLine(stringRepresentation(substitutor))
    
                    appendLine()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/importOptimizer/AbstractAnalysisApiImportOptimizerTest.kt

                    .mapValues { (_, importedNames) -> importedNames.sorted() }
    
                appendLine("USED DECLARATIONS:")
                for ((path, elements) in sortedUsedDeclarations) {
                    appendLine()
                    appendLine("Declaration: $path")
                    appendLine("By names: $elements")
                }
    
                appendLine()
    
                val sortedUnresolvedNames = importsAnalysis.unresolvedNames.sorted()
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 27 16:04:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/scopeProvider/AbstractTypeScopeTest.kt

                    appendLine("Expression: ${expression.text}")
                    appendLine("${KaType::class.simpleName}: ${type.render(position = Variance.INVARIANT)}")
                    appendLine()
                    appendLine("${KaTypeScope::class.simpleName}:")
                    appendLine(typeScope?.let { renderForTests(it) } ?: "NO_SCOPE")
                    appendLine()
    
                    appendLine("Declaration Scope:")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/symbolInfoProvider/AbstractAnnotationApplicableTargetsTest.kt

                buildString {
                    appendLine("${KtAnnotationEntry::class.simpleName}: ${annotationEntry.text}")
                    appendLine()
                    appendLine("Resolved annotation symbol:")
                    appendLine(annotationClassSymbol.render(KtDeclarationRendererForDebug.WITH_QUALIFIED_NAMES))
                    appendLine()
                    appendLine("Applicable targets: $applicableTargetsInOrder")
                }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top