Skip to content

Commit f840425

Browse files
Format files using DocumentFormat
1 parent 555ab63 commit f840425

12 files changed

+819
-820
lines changed

benchmark/benchmarks.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ datetimestr = "1970-02-02 02:20:20"
6565
datetimestrlen = our_lastindex(datetimestr)
6666

6767
SUITE["util"]["tryparsenext"] = BenchmarkGroup()
68-
SUITE["util"]["tryparsenext"]["NumericFloat64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(Float64)), $float64str,1,$float64strlen)
69-
SUITE["util"]["tryparsenext"]["LongNumericFloat64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(Float64)), $longfloat64str,1,$longfloat64strlen)
70-
SUITE["util"]["tryparsenext"]["UInt64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(UInt64)), $intstr,1,$intstrlen)
71-
SUITE["util"]["tryparsenext"]["NegInt64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(Int64)), $negintstr,1,$negintstrlen)
72-
SUITE["util"]["tryparsenext"]["Percentage"] = @benchmarkable TextParse.tryparsenext($(TextParse.Percentage()), $percentagestring,1,$percentagestringlen, TextParse.default_opts)
73-
SUITE["util"]["tryparsenext"]["StringToken"] = @benchmarkable TextParse.tryparsenext($(TextParse.StringToken(String)), $somestring,1,$somestringlen, TextParse.default_opts)
74-
SUITE["util"]["tryparsenext"]["DateTimeToken"] = @benchmarkable TextParse.tryparsenext($tok, $datetimestr,1,$datetimestrlen, $opts)
75-
SUITE["util"]["tryparsenext"]["QuotedStringToken"] = @benchmarkable TextParse.tryparsenext($(Quoted(String,quotechar='"', escapechar='"')), $somequotedstring)
68+
SUITE["util"]["tryparsenext"]["NumericFloat64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(Float64)), $float64str, 1, $float64strlen)
69+
SUITE["util"]["tryparsenext"]["LongNumericFloat64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(Float64)), $longfloat64str, 1, $longfloat64strlen)
70+
SUITE["util"]["tryparsenext"]["UInt64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(UInt64)), $intstr, 1, $intstrlen)
71+
SUITE["util"]["tryparsenext"]["NegInt64"] = @benchmarkable TextParse.tryparsenext($(TextParse.Numeric(Int64)), $negintstr, 1, $negintstrlen)
72+
SUITE["util"]["tryparsenext"]["Percentage"] = @benchmarkable TextParse.tryparsenext($(TextParse.Percentage()), $percentagestring, 1, $percentagestringlen, TextParse.default_opts)
73+
SUITE["util"]["tryparsenext"]["StringToken"] = @benchmarkable TextParse.tryparsenext($(TextParse.StringToken(String)), $somestring, 1, $somestringlen, TextParse.default_opts)
74+
SUITE["util"]["tryparsenext"]["DateTimeToken"] = @benchmarkable TextParse.tryparsenext($tok, $datetimestr, 1, $datetimestrlen, $opts)
75+
SUITE["util"]["tryparsenext"]["QuotedStringToken"] = @benchmarkable TextParse.tryparsenext($(Quoted(String, quotechar='"', escapechar='"')), $somequotedstring)
7676

7777
somefieldstring = " 12,3"
7878
f = TextParse.fromtype(Int)

docs/make.jl

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using Documenter, TextParse
22

33
makedocs(
4-
modules = [TextParse],
5-
sitename = "TextParse.jl",
6-
authors = "Shashi Gowda",
7-
pages = Any["Home" => "index.md"],
4+
modules=[TextParse],
5+
sitename="TextParse.jl",
6+
authors="Shashi Gowda",
7+
pages=Any["Home" => "index.md"],
88
)
99

1010
deploydocs(
11-
repo = "github.com/JuliaComputing/TextParse.jl.git"
11+
repo="github.com/JuliaComputing/TextParse.jl.git"
1212
)

src/VectorBackedStrings.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Base.@propagate_inbounds function Base.iterate(s::VectorBackedUTF8String, i::Int
3636
i > ncodeunits(s) && return nothing
3737
b = codeunit(s, i)
3838
u = UInt32(b) << 24
39-
Base.between(b, 0x80, 0xf7) || return reinterpret(Char, u), i+1
39+
Base.between(b, 0x80, 0xf7) || return reinterpret(Char, u), i + 1
4040
return our_next_continued(s, i, u)
4141
end
4242

@@ -58,7 +58,7 @@ function our_next_continued(s::VectorBackedUTF8String, i::Int, u::UInt32)
5858
@inbounds b = codeunit(s, i)
5959
b & 0xc0 == 0x80 || @goto ret
6060
u |= UInt32(b); i += 1
61-
@label ret
61+
@label ret
6262
return reinterpret(Char, u), i
6363
end
6464

0 commit comments

Comments
 (0)