Skip to content

Conversation

@copybara-service
Copy link

Replace C-style character functions with absl::ascii_ or llvm:: equivalents.

This change updates various uses of cctype functions such as toupper, tolower, isspace, isdigit, isalpha, and isalnum to their absl::ascii_ counterparts. In some instances within MLIR/LLVM code, llvm:: equivalents are used. String transformations using std::transform with ::tolower or ::toupper are also updated to use absl::AsciiStrToLower or absl::AsciiStrToUpper. This ensures locale-independent behavior for character manipulations.

@copybara-service copybara-service bot force-pushed the test_826593325 branch 3 times, most recently from 2a69229 to aa53483 Compare November 3, 2025 18:39
…quivalents.

This change updates various uses of `cctype` functions such as `toupper`, `tolower`, `isspace`, `isdigit`, `isalpha`, and `isalnum` to their `absl::ascii_` counterparts. In some instances within MLIR/LLVM code, `llvm::` equivalents are used. String transformations using `std::transform` with `::tolower` or `::toupper` are also updated to use `absl::AsciiStrToLower` or `absl::AsciiStrToUpper`. This ensures locale-independent behavior for character manipulations.

PiperOrigin-RevId: 826593325
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

Successfully merging this pull request may close these issues.

2 participants