Skip to content

lit_get_magic_string_utf8 can be improved without the need of strlen #4978

Open
@lygstate

Description

@lygstate

According to

lit_get_magic_string_utf8 (uint32_t id) /**< magic string id */

We can use lit_magic_strings[id] - lit_magic_strings[id+1] to calcuate the length of lit_magic_strings[id], without the need of strlen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions