From 53034be63cb4abda165108f4e04ecba1ed95cf58 Mon Sep 17 00:00:00 2001 From: Rizzen Yazston Date: Wed, 28 Jun 2023 12:09:06 +0200 Subject: [PATCH] Removal of redundant 'LString' crate. --- crates/lstring/Cargo.toml | 35 ----------------------------- crates/lstring/LICENSE-BSD-3-Clause | 11 --------- crates/lstring/README.asciidoc | 34 ---------------------------- 3 files changed, 80 deletions(-) delete mode 100644 crates/lstring/Cargo.toml delete mode 100644 crates/lstring/LICENSE-BSD-3-Clause delete mode 100644 crates/lstring/README.asciidoc diff --git a/crates/lstring/Cargo.toml b/crates/lstring/Cargo.toml deleted file mode 100644 index b30f6ea..0000000 --- a/crates/lstring/Cargo.toml +++ /dev/null @@ -1,35 +0,0 @@ -# This file is part of `i18n_lstring-rizzen-yazston` crate. For the terms of use, please see the file -# called `LICENSE-BSD-3-Clause` at the top level of the `i18n_lstring-rizzen-yazston` crate. - -[package] -# suffix '-rizzen-yazston' appended to prevent package name clashes on 'crates.io' -name = "i18n_lstring-rizzen-yazston" -version = "0.5.0" -authors = ["Rizzen Yazston"] -edition = "2021" -rust-version = "1.67.0" -description = "The `i18n_lstring` crate of the Internationalisation project." -license = "BSD-3-Clause" -readme = "README.asciidoc" -# false prevents publishing while developing, else string of repository identfier -publish = false - -# these keys are used when preparing to publish to 'crates.io' -#documentation = "" -#homepage = "`). - -The specified language is expected to be a {BCP_47_Language_Tag}[BCP 47 Language Tag] string, though any identifier could be used. - -== Cargo.toml - -``` -[dependencies] -i18n_lstring-rizzen-yazston = "0.5.0" -``` - -== Examples - -``` -use icu_locid::Locale; -use std::rc::Rc; -use i18n_lstring::LString; - -let string = "This is a test string."; -let tag = Rc::new( - Locale::canonicalize( "en-ZA" ).expect( "Failed to canonicalise language tag." ) -); -let lang_string = LString::new( string, &tag ); -assert_eq!( lang_string.as_str(), string, "String failed." ); -assert_eq!( lang_string.language_tag(), &tag, "Language tag failed." ); -```