Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric constant formatting for enumeration to allow searching for constant #1049

Open
glenncarr opened this issue Apr 1, 2024 · 2 comments

Comments

@glenncarr
Copy link

glenncarr commented Apr 1, 2024

Is it possible to have enumeration constants formatted without delimiters? E.g., "1000" instead of "1,000".

EDIT: The real problem was that the search wouldn't find 1000 (it's an error code). We were assuming it was because of the formatting, but the search also doesn't find "1,000" as the enumeration value. Is that possible?

@glenncarr glenncarr changed the title Numeric constant formatting for enumeration Numeric constant formatting for enumeration to allow searching for constant Apr 1, 2024
@EWSoftware
Copy link
Owner

Currently any words containing a digit are filtered out so that would cover numbers as well. I can update the index to include them. Words are split on non-alpha characters to it would split the text on the comma. I'm not sure if there's a good way of handling that. It may be best to have an option to format the integer values without separators.

@glenncarr
Copy link
Author

@EWSoftware an option to display integers without separators would be great. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants