Comments (2)
Which is better?
- Implement in
julia/base/char.jl
- Implement in
julia/stdlib/Unicode/src/Unicode.jl
And if isoverlong(c)
is true, how should we treat it?
And what function name should we use? codepoint
is used for the UInt32
number, and the Unicode official document calls it only "Unicode code point" in the section of notational conventions. How about codepointnotation
or codepointconvention
? Is it a bit long?
from julia.
Overlong codes should be decoded so what we need is to implement as show
does:
function codepoint_notation(c::AbstractChar)
u = Base.isoverlong(c) ? Base.decode_overlong(c) : codepoint(c)
"U+" * uppercase(string(u, base=16, pad=4))
end
from julia.
Related Issues (20)
- Documentation example not behaving as displayed - behavior of "const" on immutable objects. HOT 1
- Make precise semantics of world-age increments in top-level thunks
- New precompilation crashes on Julia 1.11-rc1 HOT 15
- introduce a function to check whether a value can be represented as a type HOT 5
- Plots package doesn't work HOT 2
- suboptimal abstract return type inference involving `getindex(::Tuple)`
- Improvements to `JULIA_CPU_TARGET` and its documentation
- [WONTFIX] `fill()` is a footgun HOT 2
- The relative precedence of `::` and `where` is strangely context dependent HOT 3
- Allow Adding Runtime Precompiles to Module Image HOT 9
- Parsing Int32 bitstring fails for very negative number HOT 3
- SVD's `propertynames` method doesn't respect private argument.
- does `methodswith` always return public API methods in v1.11?
- TTFX regression with Comonicon CLI on Julia 1.11 HOT 2
- possible dispatch bug: method static parameter matching fails
- `LinearAlgebra` with `BigFloat` edgecases crash Julia HOT 3
- `make JULIA_PRECOMPILE=0` doesn't skip precompilation of stdlibs anymore HOT 7
- incorrect method lookup for Union{} type dispatch
- Regression: failure of TypeVar in recursive struct with `NTuple` field HOT 1
- CI: test failure in UUIDs with `uuid7(Xoshiro(0))` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from julia.