Skip to content

Commit

Permalink
Rename from encdec to ende
Browse files Browse the repository at this point in the history
Signed-off-by: FedericoBruzzone <federico.bruzzone.i@gmail.com>
  • Loading branch information
FedericoBruzzone committed Apr 14, 2024
1 parent 217b87e commit bec669a
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "encdec"
name = "ende"
version = "0.1.0"
edition = "2021"
description = "A library for encoding/decoding unicode/utf-8/utf-16(ucs-2) code points."
repository = "https://github.com/FedericoBruzzone/encdec"
homepage = "https://github.com/FedericoBruzzone/encdec"
repository = "https://github.com/FedericoBruzzone/ende"
homepage = "https://github.com/FedericoBruzzone/ende"
license = "GPL-3.0"
readme = "README.md"
keywords = ["encode", "decode", "utf8", "utf16", "unicode"]
Expand Down
2 changes: 1 addition & 1 deletion Justfile
@@ -1,7 +1,7 @@
# vim: set ft=make :
set windows-powershell := true
export RUST_BACKTRACE := "1"
project_name := "encdec"
project_name := "ende"

_default:
just --list --justfile {{justfile()}}
Expand Down
36 changes: 18 additions & 18 deletions README.md
@@ -1,21 +1,21 @@
[github-ci-linux]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-linux.yml
[github-ci-linux-shield]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-linux.yml/badge.svg
[github-ci-windows]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-windows.yml
[github-ci-windows-shield]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-windows.yml/badge.svg
[github-ci-macos]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-macos.yml
[github-ci-macos-shield]: https://github.com/FedericoBruzzone/encdec/actions/workflows/build-macos.yml/badge.svg
[crates-io]: https://crates.io/crates/encdec
[crates-io-shield]: https://img.shields.io/crates/v/encdec
[github-license]: https://github.com/FedericoBruzzone/encdec/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/github/license/FedericoBruzzone/encdec
[total-lines]: https://github.com/FedericoBruzzone/encdec
[total-lines-shield]: https://tokei.rs/b1/github/FedericoBruzzone/encdec?type=Rust,Python
[creates-io-downloads]: https://crates.io/crates/encdec
[creates-io-downloads-shield]: https://img.shields.io/crates/d/encdec.svg
[dependents]: https://crates.io/crates/encdec/reverse_dependencies
[dependents-shield]: https://img.shields.io/librariesio/dependents/cargo/encdec
[documentation]: https://docs.rs/encdec
[documentation-shield]: https://docs.rs/encdec/badge.svg
[github-ci-linux]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-linux.yml
[github-ci-linux-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-linux.yml/badge.svg
[github-ci-windows]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-windows.yml
[github-ci-windows-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-windows.yml/badge.svg
[github-ci-macos]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-macos.yml
[github-ci-macos-shield]: https://github.com/FedericoBruzzone/ende/actions/workflows/build-macos.yml/badge.svg
[crates-io]: https://crates.io/crates/ende
[crates-io-shield]: https://img.shields.io/crates/v/ende
[github-license]: https://github.com/FedericoBruzzone/ende/blob/main/LICENSE
[github-license-shield]: https://img.shields.io/github/license/FedericoBruzzone/ende
[total-lines]: https://github.com/FedericoBruzzone/ende
[total-lines-shield]: https://tokei.rs/b1/github/FedericoBruzzone/ende?type=Rust,Python
[creates-io-downloads]: https://crates.io/crates/ende
[creates-io-downloads-shield]: https://img.shields.io/crates/d/ende.svg
[dependents]: https://crates.io/crates/ende/reverse_dependencies
[dependents-shield]: https://img.shields.io/librariesio/dependents/cargo/ende
[documentation]: https://docs.rs/ende
[documentation-shield]: https://docs.rs/ende/badge.svg

[![GitHub CI Linux][github-ci-linux-shield]][github-ci-linux]
[![GitHub CI Windows][github-ci-windows-shield]][github-ci-windows]
Expand Down
10 changes: 5 additions & 5 deletions src/bin/main.rs
@@ -1,8 +1,8 @@
// use encdec::prelude::*;
use encdec::ucs2;
use encdec::unicode;
use encdec::utf16;
use encdec::utf8;
// use ende::prelude::*;
use ende::ucs2;
use ende::unicode;
use ende::utf16;
use ende::utf8;

// cargo run --bin main
fn main() {
Expand Down
8 changes: 4 additions & 4 deletions src/ucs2.rs
Expand Up @@ -67,7 +67,7 @@ fn print_ucs2_vec<T: AsRef<Vec<u16>>>(ucs2_cp: T, binary_flag: bool) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u16> = vec![0xFFEE];
/// print_ucs2(&v);
/// ```
Expand All @@ -91,7 +91,7 @@ pub fn print_ucs2<T: AsRef<Vec<u16>>>(utf2_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u16> = vec![0xFFEE];
/// print_ucs2_b(&v);
/// ```
Expand All @@ -118,7 +118,7 @@ pub fn print_ucs2_b<T: AsRef<Vec<u16>>>(ucs2_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u32> = vec![0xFFEE]; // Array of code points in unicode
/// let enc: Vec<u16> = encode_in_ucs2(&v);
/// assert_eq!(enc, vec![0xFFEE]);
Expand Down Expand Up @@ -149,7 +149,7 @@ pub fn encode_in_ucs2<T: AsRef<Vec<u32>>>(unicode_cp: T) -> Vec<u16> {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u16> = vec![0xFFEE]; // Array of code points in UCS-2
/// let dec: Vec<u32> = decode_from_ucs2(&v);
/// assert_eq!(dec, vec![0xFFEE]);
Expand Down
4 changes: 2 additions & 2 deletions src/unicode.rs
Expand Up @@ -70,7 +70,7 @@ pub fn check_code_point(code_point: u32) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u32> = vec![0x10001];
/// print_unicode_b(&v);
/// ```
Expand All @@ -96,7 +96,7 @@ pub fn print_unicode_b<T: AsRef<Vec<u32>>>(unicode_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u32> = vec![0x10001];
/// print_unicode(&v);
/// ```
Expand Down
8 changes: 4 additions & 4 deletions src/utf16.rs
Expand Up @@ -188,7 +188,7 @@ fn print_utf16_vec<T: AsRef<Vec<u16>>>(utf16_cp: T, binary_flag: bool) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u16> = vec![0xD800, 0xDC00];
/// print_utf16(&v);
/// ```
Expand All @@ -212,7 +212,7 @@ pub fn print_utf16<T: AsRef<Vec<u16>>>(utf16_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u16> = vec![0xD800, 0xDC00];
/// print_utf16(&v);
/// ```
Expand Down Expand Up @@ -240,7 +240,7 @@ pub fn print_utf16_b<T: AsRef<Vec<u16>>>(utf16_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u32> = vec![0x10001]; // Array of code points in unicode
/// let enc: Vec<u16> = encode_in_utf16(&v);
/// assert_eq!(enc, vec![0xD800, 0xDC01]);
Expand Down Expand Up @@ -269,7 +269,7 @@ pub fn encode_in_utf16<T: AsRef<Vec<u32>>>(unicode_cp: T) -> Vec<u16> {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u16> = vec![0xD800, 0xDC01]; // Array of code points in UTF-16
/// let dec: Vec<u32> = decode_from_utf16(&v);
/// assert_eq!(dec, vec![0x10001]);
Expand Down
8 changes: 4 additions & 4 deletions src/utf8.rs
Expand Up @@ -351,7 +351,7 @@ fn print_utf8_vec<T: AsRef<Vec<u8>>>(utf8_cp: T, binary_flag: bool) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u8> = vec![0xf0, 0x90, 0x80, 0x81];
/// print_utf8(&v);
/// ```
Expand All @@ -375,7 +375,7 @@ pub fn print_utf8<T: AsRef<Vec<u8>>>(uft8_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u8> = vec![0xf0, 0x90, 0x80, 0x81];
/// print_utf8_b(&v);
/// ```
Expand Down Expand Up @@ -403,7 +403,7 @@ pub fn print_utf8_b<T: AsRef<Vec<u8>>>(uft8_cp: T) {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u32> = vec![0x10001]; // Array of code points in unicode
/// let enc: Vec<u8> = encode_in_utf8(&v);
/// assert_eq!(enc, vec![0xf0, 0x90, 0x80, 0x81]);
Expand Down Expand Up @@ -432,7 +432,7 @@ pub fn encode_in_utf8<T: AsRef<Vec<u32>>>(unicode_cp: T) -> Vec<u8> {
///
/// # Example
/// ```rust
/// use encdec::prelude::*;
/// use ende::prelude::*;
/// let v: Vec<u8> = vec![0xf0, 0x90, 0x80, 0x81]; // Array of code points in UTF-8
/// let dec: Vec<u32> = decode_from_utf8(&v);
/// assert_eq!(dec, vec![0x10001]);
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ucs2.rs
@@ -1,4 +1,4 @@
use encdec::prelude::*;
use ende::prelude::*;

#[test]
fn test_ucs2_encode_in_ucs2_1() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utf16.rs
@@ -1,4 +1,4 @@
use encdec::prelude::*;
use ende::prelude::*;

#[test]
fn test_utf16_encode_in_utf16_1() {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utf8.rs
@@ -1,4 +1,4 @@
use encdec::prelude::*;
use ende::prelude::*;

#[test]
fn test_utf8_encode_in_utf8_1() {
Expand Down

0 comments on commit bec669a

Please sign in to comment.