10 packages tagged with “stringformat”
This package contains the core SmartFormat assemblies with core extensions built-in, and includes references to additional SmartFormat.Extensions packages. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
This package contains the core SmartFormat assemblies with core extensions built-in. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
This package is a SmartFormat extension for formatting System.DateTime, System.DateTimeOffset and System.TimeSpan types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
This package is a SmartFormat extension for reading and formatting System.Xml.Linq.XElement SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
This package is a SmartFormat extension for formatting Newtonsoft.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
This package is a SmartFormat extension for formatting System.Text.Json types. SmartFormat is a lightweight text templating library written in C#. It can format various data sources into a string with a minimal, intuitive syntax similar to string.Format. It uses extensions to provide named placeholders, localization, pluralization, gender conjugation, and list and time formatting.
Package Description
Fork of Jeff Hansen's messageformat.net. Used for ICU MessageFormat implementation for .NET.
Provides better code maintainability by simple yet powerful .Params() string extension to supplement/replace string.Format(). Accepts numeric, named and reference parameters. More details and examples in XML tooltips. NUMERIC EXAMPLE: return "test={0}".Params("value"); returns ["test=value"] NAMED EXAMPLE: return "test={val}".Params(val => 1) returns ["test=1"] REFERENCE EXAMPLE: var test = "value"; return "test={test}".Params(() => test) returns ["test=value"] WARNING: You can't combine the 3 types in a single Param() call (there are safety checks in place), but you can chain them. All 3 methods support multiple parameters.