/// <summary> /// 小文字変換 /// </summary> /// <param name="s">入力文字列</param> /// <param name="direction">入出力方向</param> /// <returns>出力文字列</returns> public static string ToLower(string s, IOFilterDirection direction) => direction.IsOutput() ? s : s.ToLower();
/// <summary> /// 末尾の空白文字を除去する /// </summary> /// <param name="s">入力文字列</param> /// <param name="direction">入出力方向</param> /// <returns>出力文字列</returns> public static string TrimEnd(string s, IOFilterDirection direction) => direction.IsOutput() ? s : s.TrimEnd();
/// <summary> /// 出力? /// </summary> /// <param name="direction">IOフィルター入出力方向</param> /// <returns>True : 出力 / False : 入力</returns> public static bool IsOutput(this IOFilterDirection direction) { return(direction == IOFilterDirection.Output); }