Skip to content

feat: add to_folded_case() method#61

Merged
seanmonstar merged 1 commit intoseanmonstar:masterfrom
CAD97:to-folded-case
Oct 30, 2023
Merged

feat: add to_folded_case() method#61
seanmonstar merged 1 commit intoseanmonstar:masterfrom
CAD97:to-folded-case

Conversation

@CAD97
Copy link
Copy Markdown

@CAD97 CAD97 commented Oct 29, 2023

fixes #60, which used the incorrect cfg gating.

@seanmonstar seanmonstar merged commit 07f81c1 into seanmonstar:master Oct 30, 2023
@CAD97 CAD97 deleted the to-folded-case branch October 30, 2023 19:04
sholderbach pushed a commit to nushell/nushell that referenced this pull request Nov 5, 2024
# Description
Switch `to_folded_case` to a proper case fold instead of
`str::to_lowercase` now that unicase exposes its `to_folded_case`
method.

Rel: #10884, seanmonstar/unicase#61

# User-Facing Changes

Case insensitive sorts now do proper case folding.

Old behavior:

```nushell
[dreißig DREISSIG] | sort -i
# => ╭───┬──────────╮
# => │ 0 │ DREISSIG │
# => │ 1 │ dreißig  │
# => ╰───┴──────────╯
```

New behavior:

```nushell
[dreißig DREISSIG] | sort -i
# => ╭───┬──────────╮
# => │ 0 │ dreißig  │
# => │ 1 │ DREISSIG │
# => ╰───┴──────────╯
```
NotTheDr01ds pushed a commit to NotTheDr01ds/nushell that referenced this pull request Nov 8, 2024
# Description
Switch `to_folded_case` to a proper case fold instead of
`str::to_lowercase` now that unicase exposes its `to_folded_case`
method.

Rel: nushell#10884, seanmonstar/unicase#61

# User-Facing Changes

Case insensitive sorts now do proper case folding.

Old behavior:

```nushell
[dreißig DREISSIG] | sort -i
# => ╭───┬──────────╮
# => │ 0 │ DREISSIG │
# => │ 1 │ dreißig  │
# => ╰───┴──────────╯
```

New behavior:

```nushell
[dreißig DREISSIG] | sort -i
# => ╭───┬──────────╮
# => │ 0 │ dreißig  │
# => │ 1 │ DREISSIG │
# => ╰───┴──────────╯
```
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