Exemple #1
0
 /// <summary>
 /// Tries to get name and year from raw name.
 /// </summary>
 /// <param name="name">Raw name.</param>
 /// <param name="namingOptions">The naming options.</param>
 /// <returns>Returns <see cref="CleanDateTimeResult"/> with name and optional year.</returns>
 public static CleanDateTimeResult CleanDateTime(string name, NamingOptions namingOptions)
 {
     return(CleanDateTimeParser.Clean(name, namingOptions.CleanDateTimeRegexes));
 }
Exemple #2
0
 /// <summary>
 /// Tries to get name and year from raw name.
 /// </summary>
 /// <param name="name">Raw name.</param>
 /// <returns>Returns <see cref="CleanDateTimeResult"/> with name and optional year.</returns>
 public CleanDateTimeResult CleanDateTime(string name)
 {
     return(CleanDateTimeParser.Clean(name, _options.CleanDateTimeRegexes));
 }