Exemplo n.º 1
0
        internal static SharpSvn.SvnLineStyle ToSharpSvn(this SvnLineStyle lineStyle)
        {
            switch (lineStyle)
            {
            case SvnLineStyle.Default:
                return(SharpSvn.SvnLineStyle.Default);

            case SvnLineStyle.Windows:
                return(SharpSvn.SvnLineStyle.Windows);

            case SvnLineStyle.Unix:
                return(SharpSvn.SvnLineStyle.Unix);

            case SvnLineStyle.CR:
                return(SharpSvn.SvnLineStyle.CarriageReturn);

            default:
                return(SharpSvn.SvnLineStyle.Default);
            }
        }
Exemplo n.º 2
0
        internal static string GetEolPtr(SvnLineStyle style)
        {
            switch (style)
            {
            case SvnLineStyle.Default:
            case SvnLineStyle.Native:
                return(null);

            case SvnLineStyle.CarriageReturnLinefeed:
                return("CRLF");

            case SvnLineStyle.Linefeed:
                return("LF");

            case SvnLineStyle.CarriageReturn:
                return("CR");

            default:
                throw new ArgumentOutOfRangeException(nameof(style));
            }
        }