ZORALab / Hestia

One Peaceful Frontend+Backend Software Library Suite.
https://hestia.zoralab.com
Other
19 stars 1 forks source link

Assimilate String Package into HestiaSTRING package #12

Closed hollowaykeanho closed 3 months ago

hollowaykeanho commented 1 year ago

Description

Please provide a short description of what feature you're looking forward to
add into the existing repository below. Please include the story behind your
idea as well to give a better visualization of your idea.

String is a very complicated primitive data type. We should develop a library package for it called hestiaSTRING or hestia_string respectively for Go and Rust.

Set only use []rune or []glyph? to make sure we process the data as human reads (skip the []byte except data format encoding in other packages).

Expected Behavior

Please specify the expected behavior of your requested feature. Some great and
helpful pointers are your expected interface (e.g. command patterns, simple
sketches of the user interface, etc).

hestiaSTRING and hestia_string are ready to use for develop other more advanced packages.

Current Absent Behavior

Please specify the current behavior (e.g. workaround, blockage, etc).

hestiaSTRING and hestia_string are absent.

Attachment

Please drag and drop the necessary data files (e.g. screenshot, logs, etc)
below.
hollowaykeanho commented 1 year ago

Implemented FormatBOOL bool -> string feature

hollowaykeanho commented 1 year ago

Implemented FormatINT{N} int{N} -> string feature

hollowaykeanho commented 1 year ago

Implemented FormatUINT{N} uint{N} -> string feature

hollowaykeanho commented 1 year ago

Implemented S{N}_Itoa int{N} -> string feature

hollowaykeanho commented 1 year ago

Implemented FormatFLOAT32 float32 -> string function with base conversion capability.

hollowaykeanho commented 1 year ago

Implemented FormatPOINTER &pointer -> string function.

hollowaykeanho commented 1 year ago

Implemented FormatFLOAT64 float64 -> string function with base conversion capability.

hollowaykeanho commented 1 year ago

Implemented S64_ParseFLOAT64 string -> float64 function with base learning capability.

hollowaykeanho commented 1 year ago

Implemented S32_ParseFLOAT32 string -> float32 function with base learning capability.

hollowaykeanho commented 1 year ago

Implemented SN_ParseUINT string -> uint64 function with base learning and bit resizing capability.

hollowaykeanho commented 1 year ago

Implemented SN_ParseINT string -> int64 function with base learning and bit resizing capability.

hollowaykeanho commented 1 year ago

Implemented SN_Atoi string -> int64 function with base learning and bit resizing capability.

hollowaykeanho commented 1 year ago

Implemented M64_Format string formatting function similar to fmt.Sprintf function but without using reflection. This allows stable operations on TinyGo side.