• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

JuliaString/Strs.jl: String support package for Julia

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

JuliaString/Strs.jl

开源软件地址:

https://github.com/JuliaString/Strs.jl

开源编程语言:

Julia 100.0%

开源软件介绍:

Logo

Strs

contributions welcome

Strs.jl is a container for a number of different packages from JuliaString It has two main goals:

  1. To be a drop-in replacement for the built-in String and Char types, adding types that are both faster and easier to use, that are also using for interfacing with other languages, and are safer to use.
  2. To have a better option than the built-in string literal syntax and the @printf/@sprintf macros for formatted output.

It brings together the following:

  1. A better type of string literal, using StrLiterals, StrFormat, and StrEntities

    This is of the form f"..." or F"...".

    This uses Swift-style \ escape sequences, such as \u{xxxx} for Unicode constants, instead of \uXXXX and \UXXXXXXXX, which have the advantage of not having to worry about some digit or letter A-F or a-f occurring after the last hex digit of the Unicode constant.

    It also means that $, a very common character for LaTeX strings or output of currencies, does not need to be in a string quoted as '$'

    It uses \(expr) for interpolation like Swift, instead of $name or $(expr), which also has the advantage of not having to worry about the next character in the string someday being allowed in a name.

    It allows for embedding Unicode characters using a variety of easy to remember names, instead of hex codes: \:emojiname: \<latexname> \N{unicodename} \&htmlname; Examples of this are: f"\<dagger> \&yen; \N{ACCOUNT OF} \:snake:", which returns the string: "† ¥ ℀


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap