Files
Deal/src/core/Deal.Modules.Kanban/Application/Extensions/CharExtensions.cs
T
Rustam Khalimov cd0b3b606b Разбить модули Deal.Modules.* по назначению
Application проектов Discovery, Kanban, Pipeline, Settings, Tenants
разделён на Abstractions/Exceptions/Extensions/Models/Registrars/Services;
namespace приведён к путям, using потребителей мигрированы и
дедуплицированы (169 файлов), cref/FQN обновлены.
2026-09-11 13:18:14 +03:00

21 lines
966 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Deal.Modules.Kanban.Application.Abstractions;
using Deal.Modules.Kanban.Application.Models;
using Deal.Modules.Kanban.Application.Registrars;
using Deal.Modules.Kanban.Application.Services;
namespace Deal.Modules.Kanban.Application.Extensions;
/// <summary>
/// Расширения символов для нормализации бюджетной валюты.
/// </summary>
internal static class CharExtensions
{
/// <summary>
/// Буква кода валюты: латиница A–Z или кириллица А–Я (regex прототипа [^A-ZА-Я], ai.py L286).
/// </summary>
/// <param name="c">Символ (строка уже в верхнем регистре).</param>
/// <returns>True — буква, участвующая в распознавании валюты.</returns>
public static bool IsCurrencyLetter(this char c) =>
c is >= 'A' and <= 'Z' or >= 'А' and <= 'Я';
}