Skip to content

Commit 352626c

Browse files
committed
Rename package to StringEncodings.jl
1 parent 76e0e89 commit 352626c

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ notifications:
1111
# uncomment the following lines to override the default test script
1212
#script:
1313
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
14-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("iconv"); Pkg.test("iconv"; coverage=true)'
14+
# - julia -e 'Pkg.clone(pwd()); Pkg.build("StringEncodings"); Pkg.test("StringEncodings"; coverage=true)'
1515
after_success:
1616
# push coverage results to Coveralls
17-
- julia -e 'cd(Pkg.dir("iconv")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
17+
- julia -e 'cd(Pkg.dir("StringEncodings")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
1818
# push coverage results to Codecov
19-
- julia -e 'cd(Pkg.dir("iconv")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
19+
- julia -e 'cd(Pkg.dir("StringEncodings")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The iconv.jl package is licensed under the MIT "Expat" License:
1+
The StringEncodings.jl package is licensed under the MIT "Expat" License:
22

33
> Copyright (c) 2016: Milan Bouchet-Valat.
44
>

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# iconv
1+
# StringEncodings
22

3-
[![Travis CI Build Status](https://travis-ci.org/nalimilan/iconv.jl.svg?branch=master)](https://travis-ci.org/nalimilan/iconv.jl)
3+
[![Travis CI Build Status](https://travis-ci.org/nalimilan/StringEncodings.jl.svg?branch=master)](https://travis-ci.org/nalimilan/StringEncodings.jl)
44

5-
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/0on4bende76vlbt0?svg=true)](https://ci.appveyor.com/project/nalimilan/iconv-jl)
5+
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/3gslhfg91isldnvq?svg=true)](https://ci.appveyor.com/project/nalimilan/stringencodings-jl)
66

7-
[![Coveralls Coverage Status](https://coveralls.io/repos/nalimilan/iconv.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/nalimilan/iconv.jl?branch=master)
7+
[![Coveralls Coverage Status](https://coveralls.io/repos/nalimilan/StringEncodings.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/nalimilan/StringEncodings.jl?branch=master)
88

9-
[![Codecov Coverage Status](http://codecov.io/github/nalimilan/iconv.jl/coverage.svg?branch=master)](http://codecov.io/github/nalimilan/iconv.jl?branch=master)
9+
[![Codecov Coverage Status](http://codecov.io/github/nalimilan/StringEncodings.jl/coverage.svg?branch=master)](http://codecov.io/github/nalimilan/StringEncodings.jl?branch=master)

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ build_script:
2828
# Need to convert from shallow to complete for Pkg.clone to work
2929
- IF EXIST .git\shallow (git fetch --unshallow)
3030
- C:\projects\julia\bin\julia -e "versioninfo();
31-
Pkg.clone(pwd(), \"iconv\"); Pkg.build(\"iconv\")"
31+
Pkg.clone(pwd(), \"StringEncodings\"); Pkg.build(\"StringEncodings\")"
3232

3333
test_script:
34-
- C:\projects\julia\bin\julia -e "Pkg.test(\"iconv\")"
34+
- C:\projects\julia\bin\julia -e "Pkg.test(\"StringEncodings\")"

src/iconv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is a part of Julia. License is MIT: http://julialang.org/license
22

3-
module iconv
3+
module StringEncodings
44
import Base: close, eof, flush, read, readall, write, show
55
import Base.Libc: errno, strerror, E2BIG, EINVAL, EILSEQ
66
export StringEncoder, StringDecoder, encode, decode
@@ -49,7 +49,7 @@ show{T<:Union{IncompleteSequenceError,OutputBufferError}}(io::IO, exc::T) =
4949
print(io, message(T))
5050

5151
depsjl = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
52-
isfile(depsjl) ? include(depsjl) : error("libiconv not properly installed. Please run\nPkg.build(\"iconv\")")
52+
isfile(depsjl) ? include(depsjl) : error("libiconv not properly installed. Please run\nPkg.build(\"StringEncodings\")")
5353

5454

5555
## iconv wrappers

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
using Base.Test
2-
using iconv
2+
using StringEncodings
33

44
for s in ("", "\0", "a", "café crème",
5-
"a"^(iconv.BUFSIZE-1) * "€ with an incomplete codepoint between two input buffer fills",
5+
"a"^(StringEncodings.BUFSIZE-1) * "€ with an incomplete codepoint between two input buffer fills",
66
"a string € チャネルパートナーの選択",
77
"a string \0€ チャネルパ\0\0トナーの選択 with embedded and trailing nuls\0")
88
# Test round-trip to Unicode formats, checking against pure-Julia implementation
99
for (T, nullen) in ((UTF8String, 0), (UTF16String, 2), (UTF32String, 4))
10-
enc = iconv.encoding_string(T)
10+
enc = StringEncodings.encoding_string(T)
1111
a = reinterpret(UInt8, T(s).data)
1212
# Adjust for explicit \0 only for .data on UTF16String/UTF32String
1313
a = a[1:end - nullen]

0 commit comments

Comments
 (0)