Sign in

    vcf

    Parse vCard strings

    vcf
    Download zip
    Author
    Version
    0.0.5
    License
    Apache-2.0
    Last updated
    9 months ago
    Downloads
    38

    #angela/vcf

    Parse vCard strings

    Contacts

    pub struct Contacts {
    vcards : Array[VCard]
    }

    Contacts::add_vcard

    fn Contacts::add_vcard(self : Contacts, vcard : VCard) -> Contacts

    Contacts::new

    fn Contacts::new() -> Contacts

    Contacts::stringify

    fn Contacts::stringify(self : Contacts) -> String

    Property

    pub struct Property {
    name : String
    types : Array[String]
    value : String
    }

    Represents a vCard property.
    impl Eq for Property
    impl Show for Property
    impl ToJson for Property

    VCard

    pub struct VCard {
    properties : Array[Property]
    }

    Represents a complete vCard.
    impl Eq for VCard
    impl Show for VCard
    impl ToJson for VCard

    VCard::add_property

    fn VCard::add_property(self : VCard, name : String, types : Array[String], value : String) -> VCard

    VCard::get_property

    fn VCard::get_property(self : VCard, name : String) -> Property?

    VCard::get_property_value

    fn VCard::get_property_value(self : VCard, name : String) -> String?

    VCard::new

    fn VCard::new() -> VCard

    VCard::parse

    fn VCard::parse(input : String) -> Result[VCard, String]

    VCard::stringify

    fn VCard::stringify(self : VCard) -> String

    VCard::validate

    fn VCard::validate(self : VCard) -> Result[VCard, String]

    fib

    fn fib(n : Int) -> Int64

    sum

    fn sum(data~ : Array[Int], start? : Int, length? : Int) -> Int

    data is a labelled argument without default value having type Array[Int] start is an optional labelled argument with default value 0 having type Int length is an optional labelled argument without default value having type Option[Int]

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io