зеркало из https://github.com/softlandia/cpd.git
v0.5.2
This commit is contained in:
Родитель
8221c54f59
Коммит
d8dd1a8ae5
|
@ -2,4 +2,5 @@
|
|||
*.7z
|
||||
.idea/*
|
||||
tmp*
|
||||
~*
|
||||
~*
|
||||
*.exe
|
7
HIST.md
7
HIST.md
|
@ -59,6 +59,13 @@ _____________________________
|
|||
* add tests
|
||||
* add samples
|
||||
|
||||
_____________________________
|
||||
|
||||
## ver 0.5.2 // 2020.07.09 ##
|
||||
|
||||
* add license
|
||||
* add to code_pages_id.go new alias for KOI-8
|
||||
|
||||
### todo ###
|
||||
|
||||
- string UTF32 w/o bom and w/o russian char detect as UTF16
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
Copyright 2020 Vitaly Sergienko softlandia@gmail.com
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -91,9 +91,8 @@ ReadBufSize int = 1024 // default count of byte to read from input reader for de
|
|||
cpn may contain the name of the encoding of the input data,
|
||||
we can ommit cpn, then the encoding of the input data is determined automatically
|
||||
|
||||
NewReaderTo(r io.Reader) io.Reader
|
||||
encode input reader to specified enconding
|
||||
input data ONLY in UTF-8
|
||||
NewReaderTo(r io.Reader, cpn string) (io.Reader, error)
|
||||
encode input reader (MUST BE UTF-8) to specified enconding
|
||||
|
||||
## tests and static analysis ##
|
||||
|
||||
|
|
|
@ -108,6 +108,7 @@ var nameMap = map[string]IDCodePage{
|
|||
"cskoi8r": KOI8R,
|
||||
"koi": KOI8R,
|
||||
"koi8": KOI8R,
|
||||
"koi-8": KOI8R,
|
||||
"koi8-r": KOI8R,
|
||||
"koi8_r": KOI8R,
|
||||
"koi8-ru": KOI8R,
|
||||
|
|
Загрузка…
Ссылка в новой задаче