-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted Java array-style ref/out/return values into ref/out paramet…
…ers in .NET (Fixes #57) (#61) * BREAKING: ICU4N.Impl.Utility::ParseInteger(): Converted pos parameter from array to ref int * BREAKING: ICU4N.Impl.Utility::ParseUnicodeIdentifier(): Converted pos parameter from int[] to ref int (see #57) * BREAKING: ICU4N.Impl.Utility::ParseNumber(): Changed pos parameter from int[] to ref int (see #57) * BREAKING: ICU4N.Impl.Utility (EncodeRun + AppendEncodedByte): Converted fixed length state parameter to ref byte state0 and ref byte state1 (see #57) * BREAKING: ICU4N.Impl.Utility::ParseChar(): Converted pos parameter from int[] to ref int (see #57) * ICU4N.Transliterator.Text.TransliteratorIDParser (ParseFilterID() + ParseSingleID() + ParseGlobalFilter()): Changed pos parameter from int[] to ref int (see #57) * ICU4N.Transliterator.Text.TransliteratorIDParser::ParseGlobalFilter(): Changed withParens parameter from int[] to ref int (see #57). Note that this could be cleaned up further (separate input and output parameters), but since it is in an internal type there is no need. * ICU4N.Transliterator.Text.TransliteratorIDParser::ParseCompoundID(): Changed globalFilter parameter from UnicodeSet[] to out UnicodeSet (see #57) * BREAKING: ICU4N.Text.IUnicodeMatcher::Matches(): Changed offset parameter from int[] to ref int (see #57) * BREAKING: ICU4N.Text.IUnicodeReplacer::Replace(): Changed cursor parameter from int[] to out int (see #57) * BREAKING: ICU4N.Impl.ICUResourceBundle::GetFunctionalEquivalent() + ICU4N.Text.Collator::GetFunctionalEquivalent(): Changed isAvailable parameter from bool[] to out bool (see #57) * BREAKING: ICU4N.Impl.Int32TrieBuilder::GetValue(): Changed inBlockZero parameter from bool[] to out bool. There is already an overload that allows omitting the inBlockZero parameter. See #57. * ICU4N.Text.DictionaryMatcher::Matches(): Changed count parameter from int[] to out int (see #57). * ICU4N.Globalization.UCultureInfo::ParseTagString(): Converted tags string array parameter to out parameters for language, script, and region (see #57) * ICU4N.Impl.Grego::FloorDivide(): Changed remainder parameter from long[] to out long (see #57) * BREAKING: ICU4N.Impl.Grego (DayToFields() + TimeToFields()): Changed "fields" parameter from an int[] to individual out parameters for year, month, dayOfMonth, dayOfWeek, dayOfYear, and millisecondOfDay and changed return value to void * ICU4N.Impl.UCharacterName::AddGroupName(): Changed return array to out parameters and eliminated extra array member variable (see #57) * .build/nowarn.props: Disabled LuceneDev1003 and LuceneDev1004 warnings for all projects * ICU4N.Text.TransliteratorIDParser::IDtoSTV(): Converted return array to out parameters
- Loading branch information
1 parent
c3d79dd
commit 2afe428
Showing
31 changed files
with
481 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.