Example #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());
        }
Example #2
0
 public static void Copy(Characters destination, string source)
 {
     FortranLib.Copy(destination.CharArray, 1, source.ToCharArray());
 }
Example #3
0
 public static void Copy(Characters destination, int startIndex, int lastIndex, string source)
 {
     FortranLib.Copy(destination.CharArray, startIndex, lastIndex, source.ToCharArray());
 }
Example #4
0
 public static void Copy(Characters destination, Characters source)
 {
     FortranLib.Copy(destination.CharArray, 1, source.CharArray);
 }
Example #5
0
 public static void Copy(Characters destination, int startIndex, Characters source)
 {
     FortranLib.Copy(destination.CharArray, startIndex, source.CharArray);
 }
Example #6
0
 public static void Copy(char[] destinationArray, int startIndex, char[] sourceArray)
 {
     FortranLib.Copy(destinationArray, startIndex, destinationArray.Length, sourceArray);
 }
Example #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));
 }
Example #8
0
 public static void Copy(ref string destinationString, string sourceString)
 {
     FortranLib.Copy(ref destinationString, 1, sourceString);
 }
Example #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);
        }
Example #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);
 }
Example #11
0
 public static int INDEX(Characters chars, Characters value)
 {
     return(FortranLib.INDEX(chars.ToString(), value.ToString()));
 }
Example #12
0
 public static int INDEX(Characters chars, string value)
 {
     return(FortranLib.INDEX(chars.ToString(), value, false));
 }
Example #13
0
 public static int INDEX(Characters chars, string value, bool back)
 {
     return(FortranLib.INDEX(chars.ToString(), value, back));
 }
Example #14
0
 public static int SCAN(Characters charArray, string set)
 {
     return(FortranLib.SCAN(charArray.ToString(), set));
 }