Skip to content

Commit

Permalink
SWEEP: Changed ToAppendable() > AsAppendable()
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Jan 23, 2020
1 parent 64b7e28 commit c4f9281
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ICU4N/Impl/Normalizer2Impl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static bool IsJamo(int c)
public sealed partial class ReorderingBuffer : IAppendable
{
public ReorderingBuffer(Normalizer2Impl ni, StringBuilder dest, int destCapacity)
: this(ni, dest.ToAppendable(), destCapacity)
: this(ni, dest.AsAppendable(), destCapacity)
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/ICU4N/Support/Text/StringBuilderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal static class StringBuilderExtensions
/// </summary>
/// <param name="text">This <see cref="StringBuilder"/>.</param>
/// <returns>An <see cref="StringBuilderCharSequence"/>.</returns>
internal static IAppendable ToAppendable(this StringBuilder text)
internal static IAppendable AsAppendable(this StringBuilder text)
{
return new StringBuilderCharSequence(text);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ICU4N/Text/MessageFormat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ internal sealed class AppendableWrapper
{
public AppendableWrapper(StringBuilder sb)
{
app = sb.ToAppendable();
app = sb.AsAppendable();
length = sb.Length;
attributes = null;
}
Expand Down
6 changes: 3 additions & 3 deletions src/ICU4N/Text/UnicodeSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ public virtual UnicodeSet ApplyPattern(string pattern,
StringBuilder rebuiltPat = new StringBuilder();
RuleCharacterIterator chars =
new RuleCharacterIterator(pattern, symbols, pos);
ApplyPattern(chars, symbols, rebuiltPat.ToAppendable(), options);
ApplyPattern(chars, symbols, rebuiltPat.AsAppendable(), options);
if (chars.InVariable)
{
SyntaxError(chars, "Extra chars in variable value");
Expand Down Expand Up @@ -2598,11 +2598,11 @@ private void ApplyPattern(RuleCharacterIterator chars, ISymbolTable symbols,
switch (setMode)
{
case SETMODE1_UNICODESET:
nested.ApplyPattern(chars, symbols, patBuf.ToAppendable(), options);
nested.ApplyPattern(chars, symbols, patBuf.AsAppendable(), options);
break;
case SETMODE2_PROPERTYPAT:
chars.SkipIgnored(opts);
nested.ApplyPropertyPattern(chars, patBuf.ToAppendable(), symbols);
nested.ApplyPropertyPattern(chars, patBuf.AsAppendable(), symbols);
break;
case SETMODE3_PREPARSED: // `nested' already parsed
nested.ToPattern(patBuf, false);
Expand Down

0 comments on commit c4f9281

Please sign in to comment.