cpp API should support strings to set flag values

Open
#4,808 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
api

Research direction

Start with the C++ API handling for flag sets and read discussion 4807 for the intended behavior. Trace the existing string-to-enum support as the closest reference; done means flag sets accept strings and flags accept any integer value, with corresponding coverage added where the API is tested.

Written by the indexing model from the issue text.

Description

enhancement
  • in the cpp API, we should allow strings to set flag sets (cf. strings to set enums)
  • flags should allow any integer value

See https://github.com/libvips/libvips/discussions/4807

Dominant language
C
Stars
11.7k
Forks
797
Avg merge
3d 6h
Merged PRs (30d)
15

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from libvips/libvips

All issues in libvips/libvips

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.