Skip to content

Add std::encoding module (json, base64, hex, url, utf8) #48

@mjm918

Description

@mjm918

Summary

Add a comprehensive std::encoding module for common encoding/decoding operations.

Sub-issues

This feature has been split into smaller, focused issues:

Module Structure

std::encoding::base64   (#50)
std::encoding::hex      (#51)
std::encoding::url      (#52)
std::encoding::utf8     (#53)
std::encoding::json     (#54)

Implementation Order

Recommended order (simplest to most complex):

  1. utf8 (Add std::encoding::utf8 module #53) - Simple, strings are already UTF-8 internally
  2. hex (Add std::encoding::hex module #51) - Straightforward byte<->string conversion
  3. base64 (Add std::encoding::base64 module #50) - Well-defined standard encoding
  4. url (Add std::encoding::url module #52) - Percent-encoding with some edge cases
  5. json (Add std::encoding::json module #54) - Most complex, requires new type system support

Shared Exception

All modules share:

exception DecodeError {
    position: int,
}

Completion Criteria

This tracking issue will be closed when all sub-issues are completed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions