system\globalization\japanesecalendar.cs (3)
296if (!Number.TryParseInt32(value.Substring(0,4), NumberStyles.None, NumberFormatInfo.InvariantInfo, out year) ||
297!Number.TryParseInt32(value.Substring(5,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out month) ||
298!Number.TryParseInt32(value.Substring(8,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out day))
system\guid.cs (8)
494if (!StringToInt(guidString.Substring(numStart, numLen) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._a, ref result))
511if (!StringToShort(guidString.Substring(numStart, numLen) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._b, ref result))
527if (!StringToShort(guidString.Substring(numStart, numLen) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._c, ref result))
570uint number = (uint)Convert.ToInt32(guidString.Substring(numStart, numLen),16);
631if (!StringToInt(guidString.Substring(startPos, 8) /*first DWORD*/, -1, ParseNumbers.IsTight, out result.parsedGuid._a, ref result))
635if (!StringToShort(guidString.Substring(startPos, 4), -1, ParseNumbers.IsTight, out result.parsedGuid._b, ref result))
639if (!StringToShort(guidString.Substring(startPos, 4), -1, ParseNumbers.IsTight, out result.parsedGuid._c, ref result))
643if (!StringToInt(guidString.Substring(startPos, 4), -1, ParseNumbers.IsTight, out temp, ref result))
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (14)
3715entry.Name = entry.Name.Substring(0, iCP);
3782lhs_name = name.Substring(0, i);
3783lhs_tag = name.Substring(i + 1, name.Length - i - 1);
3788rhs_name = value.Substring(0, i);
3789rhs_tag = value.Substring(i + 1, value.Length - i - 1);
3808string s = lhs_name.Substring(0, rhs_name.Length);
5043string substring = text.Substring(index, currentIndex - index);
8246string imageXaml = dnImage.Xaml.Substring(0, uriSourceIndex);
8415pictureUri = instructionName.Substring(uriIndex, instructionName.Length - uriIndex - 1);
8420pictureUri = pictureUri.Substring(0, pictureUriEndIndex);
8470string param = instr.Substring(iStart, iEnd - iStart);
8639string ptString = instr.Substring(iStart, i - iStart);
8678string name = instr.Substring(iStart, i - iStart);
11563string subtext = text.Substring(nStart, nEnd - nStart);
net\System\Net\_FtpControlStream.cs (16)
787path = path.Substring(0, path.Length-1);
796directory = path.Substring(0, index+1);
797filename = path.Substring(index+1, path.Length-(index+1));
802directory = directory.Substring(0, directory.Length-1);
910int year = Convert.ToInt32(dateTimeLine.Substring(0, 4), NumberFormatInfo.InvariantInfo);
911int month = Convert.ToInt16(dateTimeLine.Substring(4, 2), NumberFormatInfo.InvariantInfo);
912int day = Convert.ToInt16(dateTimeLine.Substring(6, 2), NumberFormatInfo.InvariantInfo);
913int hour = Convert.ToInt16(dateTimeLine.Substring(8, 2), NumberFormatInfo.InvariantInfo);
914int minute = Convert.ToInt16(dateTimeLine.Substring(10, 2), NumberFormatInfo.InvariantInfo);
915int second = Convert.ToInt16(dateTimeLine.Substring(12, 2), NumberFormatInfo.InvariantInfo);
950string filename = str.Substring(start, end-start);
996if (Int64.TryParse (str.Substring(pos1, pos2-pos1),
1036return str.Substring(firstQuote+1, lastQuote-firstQuote-1);
1078string addressInfo = responseString.Substring(pos1+1, pos2-pos1-1);
1189response.StatusCodeString = responseString.Substring(0, 3);
1225if(responseString.Substring(lineStart, 3) == response.StatusCodeString)
net\System\URI.cs (41)
574string scheme = relativeStr.Substring(0, i);
911pathSegments.Add(path.Substring(current, (next - current) + 1));
1054? m_String.Substring(start + 1, m_Info.Offset.Query - start - 1)
1055: m_String.Substring(start, m_Info.Offset.Query - start);
1273ret = ret.Substring(1, ret.Length - 2);
2165m_String = m_String.Substring(0, idx);
2180m_String = m_String.Substring(0, idx);
2249m_String += m_originalUnicodeString.Substring(idx, m_originalUnicodeString.Length - idx);
2592host = str.Substring(idx, end-idx);
3076return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Path - m_Info.Offset.Scheme);
3078return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme)
3079+ m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Path - m_Info.Offset.Host);
3088return m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Path - m_Info.Offset.Host);
3090return m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Path - m_Info.Offset.Host)
3098return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.End - m_Info.Offset.Scheme);
3103return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme)
3104+ m_String.Substring(m_Info.Offset.Host, m_Info.Offset.Fragment - m_Info.Offset.Host);
3109return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Fragment - m_Info.Offset.Scheme);
3113return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Path - m_Info.Offset.Scheme);
3120return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.Fragment - m_Info.Offset.Scheme);
3126return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme);
3138return (idx - m_Info.Offset.Host == 0)? string.Empty: m_String.Substring(m_Info.Offset.Host,
3154return m_String.Substring(delimiterAwareIdx, m_Info.Offset.Query - delimiterAwareIdx);
3166return m_String.Substring(delimiterAwareIdx, m_Info.Offset.Fragment - delimiterAwareIdx);
3178return m_String.Substring(delimiterAwareIdx, m_Info.Offset.End - delimiterAwareIdx);
3182m_String.Substring(m_Info.Offset.User, m_Info.Offset.Path - m_Info.Offset.User);
3188return m_String.Substring(m_Info.Offset.User, m_Info.Offset.Path - m_Info.Offset.User)
3192return m_String.Substring(m_Info.Offset.Path, m_Info.Offset.Fragment - m_Info.Offset.Path);
3196return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.User - m_Info.Offset.Scheme)
3197+ m_String.Substring(m_Info.Offset.Host, m_Info.Offset.End - m_Info.Offset.Host);
3202return m_String.Substring(m_Info.Offset.Scheme, m_Info.Offset.End - m_Info.Offset.Scheme);
3205return m_String.Substring(m_Info.Offset.Path, m_Info.Offset.End - m_Info.Offset.Path);
3221return m_String.Substring(m_Info.Offset.User, delimiterAwareIdx - m_Info.Offset.User);
3921newHost = m_originalUnicodeString.Substring(0, startInput);
4066newHost = m_originalUnicodeString.Substring(0, startInput) + userInfoString + idnValue;
4291newHost = m_originalUnicodeString.Substring(0, startInput) +
4299newHost = m_originalUnicodeString.Substring(0, startInput) +
4355newHost = m_originalUnicodeString.Substring(0, startInput);
5014return basePart.OriginalString.Substring(0, idx+1 ) + relativePart;
5018return basePart.OriginalString.Substring(0, idx+1 ) + relativePart;
5040share = share.Substring(0, i);
services\monitoring\system\diagnosticts\ProcessManager.cs (7)
853if (instanceName.EndsWith(".", StringComparison.Ordinal )) processName = instanceName.Substring(0, 14);
854else if (instanceName.EndsWith(".e", StringComparison.Ordinal )) processName = instanceName.Substring(0, 13);
855else if (instanceName.EndsWith(".ex", StringComparison.Ordinal)) processName = instanceName.Substring(0, 12);
1189processName = processName.Substring(0, 14);
1192processName = processName.Substring(0, 13);
1195processName = processName.Substring(0, 12);
1277return name.Substring(slash, period - slash + 1);
System\UriTemplate.cs (10)
81template = template.Substring(0, fragmentStart);
93pathTemplate = template.Substring(0, queryStart);
108segment = pathTemplate.Substring(startIndex, endIndex + 1 - startIndex);
174key = queryTemplate.Substring(queryPartStart, equalSignIndex - queryPartStart);
175value = queryTemplate.Substring(equalSignIndex + 1, queryPartEnd - equalSignIndex - 1);
179key = queryTemplate.Substring(queryPartStart, queryPartEnd - queryPartStart);
788relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash
815relPathSeg = relPathSeg.Substring(0, relPathSeg.Length - 1); // trim slash
1565varName = varDeclaration.Substring(0, equalSignIndex);
1674segment.Substring(1 + WildcardPath.Length, segment.Length - 2 - WildcardPath.Length),
HttpRequest.cs (15)
325values.Add(s.Substring(i, ci-i));
669c.Name = s.Substring(i, ei-i);
686c.Value = s.Substring(i, l-i);
690c.Values.Add(s.Substring(i, ei-i), s.Substring(ei+1, ai-ei-1));
695c.Values.Add(null, s.Substring(i, ai-i));
732String cookieString = s.Substring(i, j-i).Trim();
883attrValue = headerValue.Substring(i+1, j-i-1).Trim();
896attrValue = headerValue.Substring(i, j-i).Trim();
1457uri = uri.Substring(0, qsIndex);
1550_filePath = VirtualPath.CreateAbsolute(Path.Substring(0, filePathLen));
1638string pathInfoString = path.VirtualPathString.Substring(filePathLength, pathLength - filePathLength);
2710detectedString += value.Substring(startIndex, endIndex - startIndex) + "\"";
2713detectedString += value.Substring(startIndex, endIndex - startIndex) + "...\"";
3021realPath = realPath.Substring(0, realPath.Length - 1);
UI\WebControls\TreeView.cs (7)
3233string nodeIndexString = _callbackEventArgument.Substring(startIndex, endIndex);
3239int lastIndex = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture);
3248string parentIsLast = _callbackEventArgument.Substring(startIndex, endIndex - startIndex);
3253int nodeTextLength = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture);
3256string nodeText = _callbackEventArgument.Substring(startIndex, endIndex - startIndex);
3261int dataPathLength = Int32.Parse(_callbackEventArgument.Substring(startIndex, endIndex - startIndex), CultureInfo.InvariantCulture);
3264string dataPath = _callbackEventArgument.Substring(startIndex, endIndex - startIndex);