Ejemplo n.º 1
0
        public static void Copy(ref string destinationString, int startIndex, int lastIndex, char source)
        {
            if (startIndex != lastIndex)
            {
                var argEx = new ArgumentException("startIndex != lastIndex");
            }

            FortranLib.Copy(ref destinationString, startIndex, lastIndex, source.ToString());
        }
Ejemplo n.º 2
0
 public static void Copy(Characters destination, string source)
 {
     FortranLib.Copy(destination.CharArray, 1, source.ToCharArray());
 }
Ejemplo n.º 3
0
 public static void Copy(Characters destination, int startIndex, int lastIndex, string source)
 {
     FortranLib.Copy(destination.CharArray, startIndex, lastIndex, source.ToCharArray());
 }
Ejemplo n.º 4
0
 public static void Copy(Characters destination, Characters source)
 {
     FortranLib.Copy(destination.CharArray, 1, source.CharArray);
 }
Ejemplo n.º 5
0
 public static void Copy(Characters destination, int startIndex, Characters source)
 {
     FortranLib.Copy(destination.CharArray, startIndex, source.CharArray);
 }
Ejemplo n.º 6
0
 public static void Copy(char[] destinationArray, int startIndex, char[] sourceArray)
 {
     FortranLib.Copy(destinationArray, startIndex, destinationArray.Length, sourceArray);
 }
Ejemplo n.º 7
0
 /// <summary>
 ///Retrieves a substring . The substring starts at a specified
 ///character position.
 /// </summary>
 /// <param name="s"></param>
 /// <param name="startIndex"></param>
 /// <returns></returns>
 public static char[] Substring(char[] s, int startIndex)
 {
     return(FortranLib.Substring(s, startIndex, s.Length));
 }
Ejemplo n.º 8
0
 public static void Copy(ref string destinationString, string sourceString)
 {
     FortranLib.Copy(ref destinationString, 1, sourceString);
 }
Ejemplo n.º 9
0
        public static void Copy(ref string destinationString, int startIndex, string sourceString)
        {
            int lastIndex = Math.Min(destinationString.Length, sourceString.Length);

            FortranLib.Copy(ref destinationString, startIndex, lastIndex, sourceString);
        }
Ejemplo n.º 10
0
 public static void Copy(ref string destinationString, int startIndex, int lastIndex, string sourceString)
 {
     char[] destinationArray = destinationString.ToCharArray();
     FortranLib.Copy(destinationArray, startIndex, lastIndex, sourceString.ToCharArray());
     destinationString = new string(destinationArray);
 }
Ejemplo n.º 11
0
 public static int INDEX(Characters chars, Characters value)
 {
     return(FortranLib.INDEX(chars.ToString(), value.ToString()));
 }
Ejemplo n.º 12
0
 public static int INDEX(Characters chars, string value)
 {
     return(FortranLib.INDEX(chars.ToString(), value, false));
 }
Ejemplo n.º 13
0
 public static int INDEX(Characters chars, string value, bool back)
 {
     return(FortranLib.INDEX(chars.ToString(), value, back));
 }
Ejemplo n.º 14
0
 public static int SCAN(Characters charArray, string set)
 {
     return(FortranLib.SCAN(charArray.ToString(), set));
 }