From 3e17fb33800c2993b270870036d413e5d86587f6 Mon Sep 17 00:00:00 2001 From: Alex Touchet Date: Mon, 6 Sep 2021 14:44:09 -0700 Subject: [PATCH 1/2] Fix crates.io badge and update link --- README.md | 2 +- include/encoding_rs_cpp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d4c8086..8dc9942 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # encoding_c -[![crates.io](https://meritbadge.herokuapp.com/encoding_c)](https://crates.io/crates/encoding_c) +[![crates.io](https://img.shields.io/crates/v/encoding_c.svg)](https://crates.io/crates/encoding_c) [![docs.rs](https://docs.rs/encoding_c/badge.svg)](https://docs.rs/encoding_c/) [![Apache 2 / MIT dual-licensed](https://img.shields.io/badge/license-Apache%202%20%2F%20MIT-blue.svg)](https://github.com/hsivonen/encoding_c/blob/master/COPYRIGHT) diff --git a/include/encoding_rs_cpp.h b/include/encoding_rs_cpp.h index 4ec5181..37a0b5e 100644 --- a/include/encoding_rs_cpp.h +++ b/include/encoding_rs_cpp.h @@ -744,7 +744,7 @@ class Encoding final { */ inline std::string name() const { std::string name(ENCODING_NAME_MAX_LENGTH, '\0'); - // http://herbsutter.com/2008/04/07/cringe-not-vectors-are-guaranteed-to-be-contiguous/#comment-483 + // https://herbsutter.com/2008/04/07/cringe-not-vectors-are-guaranteed-to-be-contiguous/#comment-483 size_t length = encoding_name(this, reinterpret_cast(&name[0])); name.resize(length); return name; From 066ab1d8da75dc0b30a4a1aef84d88aa094ffd6d Mon Sep 17 00:00:00 2001 From: Alex Touchet <26315797+atouchet@users.noreply.github.com> Date: Thu, 10 Sep 2026 18:52:28 -0700 Subject: [PATCH 2/2] Update URLs --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8dc9942..0edec15 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # encoding_c [![crates.io](https://img.shields.io/crates/v/encoding_c.svg)](https://crates.io/crates/encoding_c) -[![docs.rs](https://docs.rs/encoding_c/badge.svg)](https://docs.rs/encoding_c/) -[![Apache 2 / MIT dual-licensed](https://img.shields.io/badge/license-Apache%202%20%2F%20MIT-blue.svg)](https://github.com/hsivonen/encoding_c/blob/master/COPYRIGHT) +[![docs.rs](https://docs.rs/encoding_c/badge.svg)](https://docs.rs/encoding_c) +[![Apache 2 / MIT dual-licensed](https://img.shields.io/badge/license-Apache%202%20%2F%20MIT-blue.svg)](https://github.com/hsivonen/encoding_c/blob/main/COPYRIGHT) encoding_c is an FFI wrapper for [encoding_rs](https://github.com/hsivonen/encoding_rs). @@ -14,7 +14,7 @@ for bindings for `encoding_rs::mem`. ## Licensing Please see the file named -[COPYRIGHT](https://github.com/hsivonen/encoding_c/blob/master/COPYRIGHT). +[COPYRIGHT](https://github.com/hsivonen/encoding_c/blob/main/COPYRIGHT). ## No Unwinding Support!