1
0
mirror of https://github.com/XFox111/bonch-calendar.git synced 2026-06-30 10:52:41 +03:00

docs: more code comments and minor style refactoring

This commit is contained in:
2026-05-24 08:28:09 +00:00
parent d5f5f54eb7
commit bb6f9d493d
18 changed files with 368 additions and 77 deletions
+12
View File
@@ -2,8 +2,20 @@ using System.Text.RegularExpressions;
namespace BonchCalendar.Utils;
/// <summary>
/// Utility methods for timetable parser.
/// </summary>
public static partial class ParserUtils
{
/// <summary>
/// Get class start and end times from class' number label.
/// </summary>
/// <param name="label">Class' number label.</param>
/// <returns>A tuple value of start and end times.</returns>
/// <remarks>
/// This method is only supposed to be used as a fallback method of determening class' time
/// </remarks>
/// <exception cref="NotImplementedException">Unknown label encountered.</exception>
public static (TimeSpan startTime, TimeSpan endTime) GetTimesFromLabel(string label)
{
(string startTime, string endTime) = label switch