Here are the examples of the csharp api string.RemoveHexadecimalSymbols() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
19
Source : FeedResult.cs
with Apache License 2.0
from VahidN
with Apache License 2.0
from VahidN
private async Task addChannelIdenreplacedyAsync(RssFeedWriter rssFeedWriter)
{
if (_httpContextInfo == null)
{
throw new InvalidOperationException("_httpContextInfo is null.");
}
await rssFeedWriter.WriteDescription(_feedChannel.FeedDescription.ApplyRle().RemoveHexadecimalSymbols());
await rssFeedWriter.WriteCopyright(_feedChannel.FeedCopyright.ApplyRle().RemoveHexadecimalSymbols());
await rssFeedWriter.Writereplacedle(_feedChannel.Feedreplacedle.ApplyRle().RemoveHexadecimalSymbols());
await rssFeedWriter.WriteLanguage(new CultureInfo(_feedChannel.CultureName));
await rssFeedWriter.WriteRaw($"<atom:link href=\"{_httpContextInfo.GetRawUrl()}\" rel=\"self\" type=\"application/rss+xml\" />");
await rssFeedWriter.Write(new SyndicationLink(_httpContextInfo.GetBaseUri(), relationshipType: RssElementNames.Link));
}
19
Source : FeedResult.cs
with Apache License 2.0
from VahidN
with Apache License 2.0
from VahidN
private IEnumerable<SyndicationItem> getSyndicationItems()
{
foreach (var item in _feedChannel.RssItems)
{
var uri = new Uri(QueryHelpers.AddQueryString(item.Url,
new Dictionary<string, string?>(StringComparer.Ordinal)
{
{ "utm_source", "feed" },
{ "utm_medium", "rss" },
{ "utm_campaign", "featured" },
{ "utm_updated", getUpdatedStamp(item) },
}));
var syndicationItem = new SyndicationItem
{
replacedle = item.replacedle.ApplyRle().RemoveHexadecimalSymbols(),
Id = uri.ToString(),
Description = item.Content.WrapInDirectionalDiv().RemoveHexadecimalSymbols(),
Published = item.PublishDate,
LastUpdated = item.LastUpdatedTime
};
syndicationItem.AddLink(new SyndicationLink(uri));
syndicationItem.AddContributor(new SyndicationPerson(item.AuthorName, item.AuthorName));
foreach (var category in item.Categories)
{
syndicationItem.AddCategory(new SyndicationCategory(category));
}
yield return syndicationItem;
}
}
19
Source : PersianNormalizerUtils.cs
with Apache License 2.0
from VahidN
with Apache License 2.0
from VahidN
public static string NormalizePersianText(this string text, PersianNormalizers normalizers)
{
if (string.IsNullOrEmpty(text))
{
return string.Empty;
}
if (normalizers.HasFlag(PersianNormalizers.ApplyPersianNumbers))
{
text = text.ToPersianNumbers();
}
if (!text.ContainsFarsi(allowWhitespace: true))
{
return text;
}
if (normalizers.HasFlag(PersianNormalizers.RemoveDiacritics))
{
text = text.RemoveDiacritics();
}
if (normalizers.HasFlag(PersianNormalizers.ApplyPersianYeKe))
{
text = text.ApplyCorrectYeKe();
}
if (normalizers.HasFlag(PersianNormalizers.ApplyHalfSpaceRule))
{
text = text.ApplyHalfSpaceRule();
}
if (normalizers.HasFlag(PersianNormalizers.CleanupZwnj))
{
text = text.NormalizeZwnj();
}
if (normalizers.HasFlag(PersianNormalizers.FixDashes))
{
text = text.NormalizeDashes();
}
if (normalizers.HasFlag(PersianNormalizers.ConvertDotsToEllipsis))
{
text = text.NormalizeDotsToEllipsis();
}
if (normalizers.HasFlag(PersianNormalizers.ConvertEnglishQuotes))
{
text = text.NormalizeEnglishQuotes();
}
if (normalizers.HasFlag(PersianNormalizers.CleanupExtraMarks))
{
text = text.NormalizeExtraMarks();
}
if (normalizers.HasFlag(PersianNormalizers.RemoveAllKashida))
{
text = text.NormalizeAllKashida();
}
if (normalizers.HasFlag(PersianNormalizers.CleanupSpacingAndLineBreaks))
{
text = text.NormalizeSpacingAndLineBreaks();
}
if (normalizers.HasFlag(PersianNormalizers.RemoveOutsideInsideSpacing))
{
text = text.NormalizeOutsideInsideSpacing();
}
if (normalizers.HasFlag(PersianNormalizers.RemoveHexadecimalSymbols))
{
text = text.RemoveHexadecimalSymbols();
}
return text;
}