Skip to content

Commit

Permalink
style: redorder functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Reindl committed Nov 18, 2024
1 parent 7833f74 commit bd8d918
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Oberon0.System/Oberon0System.Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,6 @@ public static string ConvertToString(bool value)
return value.ToString(CultureInfo.InvariantCulture);
}

/// <summary>
/// Get string length
/// </summary>
/// <param name="value">the value to convert</param>
/// <returns>the converted string</returns>
[Oberon0Export("Length", "INTEGER", "STRING")]
// ReSharper disable once UnusedMember.Global
public static int Length(string value)
{
return value.Length;
}

/// <summary>
/// Convert REAL to STRING.
/// </summary>
Expand All @@ -86,4 +74,16 @@ public static string ConvertToString(bool value, string trueValue, string falseV
{
return value ? trueValue : falseValue;
}

/// <summary>
/// Get string length
/// </summary>
/// <param name="value">the value to convert</param>
/// <returns>the converted string</returns>
[Oberon0Export("Length", "INTEGER", "STRING")]
// ReSharper disable once UnusedMember.Global
public static int Length(string value)
{
return value.Length;
}
}

0 comments on commit bd8d918

Please sign in to comment.