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