https://github.com/JuliaLang/julia
Revision 03bd792208797f941d50f418f81251d60435c0d4 authored by Milan Bouchet-Valat on 16 February 2018, 21:34:53 UTC, committed by Milan Bouchet-Valat on 14 March 2018, 20:32:13 UTC
This makes the behavior more predictable than only resizing Vector{UInt8}
inputs when they have been allocated via StringVector, as the caller may have
obtained them from other code without knowing how they were created. This ensures
code will not rely on the fact that a copy is made in many common cases.
The behavior is also simpler to document.
1 parent 71ef5a0
History
Tip revision: 03bd792208797f941d50f418f81251d60435c0d4 authored by Milan Bouchet-Valat on 16 February 2018, 21:34:53 UTC
Always resize input to zero length in String(::Vector{UInt8})
Tip revision: 03bd792
File Mode Size
.circleci
.github
base
contrib
deps
doc
etc
src
stdlib
test
ui
.freebsdci.sh -rwxr-xr-x 1.0 KB
.gitattributes -rw-r--r-- 67 bytes
.gitignore -rw-r--r-- 213 bytes
.mailmap -rw-r--r-- 9.5 KB
.travis.yml -rw-r--r-- 6.5 KB
CONTRIBUTING.md -rw-r--r-- 20.4 KB
DISTRIBUTING.md -rw-r--r-- 23.6 KB
HISTORY.md -rw-r--r-- 144.9 KB
LICENSE.md -rw-r--r-- 5.4 KB
Make.inc -rw-r--r-- 35.1 KB
Makefile -rw-r--r-- 25.5 KB
NEWS.md -rw-r--r-- 74.1 KB
README.arm.md -rw-r--r-- 5.7 KB
README.md -rw-r--r-- 29.7 KB
README.windows.md -rw-r--r-- 13.0 KB
VERSION -rw-r--r-- 10 bytes
Windows.inc -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 2.2 KB

README.md

back to top