Configuration\ExpressServerConfig.cs (8)
124string appRoot = StringUtil.StringFromWCharPtr(pBstr, cBstr);
143string subVdir = (cBstr > 1) ? StringUtil.StringFromWCharPtr(pBstr, cBstr) : null;
155else if (StringUtil.EqualsIgnoreCase(appRootRelativePath, 0, subVdir, 0, appRootRelativePath.Length)) {
210username = (cBstrUserName > 0) ? StringUtil.StringFromWCharPtr(pBstrUserName, cBstrUserName) : null;
211password = (cBstrPassword > 0) ? StringUtil.StringFromWCharPtr(pBstrPassword, cBstrPassword) : null;
281StringUtil.EqualsIgnoreCase(siteArgument, ProcessHostConfigUtils.DEFAULT_SITE_ID_STRING) ||
282StringUtil.EqualsIgnoreCase(siteArgument, _nativeConfig.GetSiteNameFromId(ProcessHostConfigUtils.DEFAULT_SITE_ID_UINT))) {
356appPath = (result == 0 && cBstr > 0) ? StringUtil.StringFromWCharPtr(pBstr, cBstr) : null;
Hosting\IIS7WorkerRequest.cs (34)
150_cacheUrl = (cacheUrlBufferSize <= 0) ? null : StringUtil.StringFromWCharPtr(cacheUrl, cacheUrlBufferSize);
151_pathTranslated = (pathTranslatedBufferSize <= 0) ? String.Empty : StringUtil.StringFromWCharPtr(pathTranslatedBuffer, pathTranslatedBufferSize);
211_appPath = StringUtil.StringFromWCharPtr(virtAddr, virtLen);
212_appPathTranslated = StringUtil.StringFromWCharPtr(physAddr, physLen);
217!StringUtil.StringEndsWith(_appPathTranslated, '\\') )
309uri = StringUtil.StringFromWCharPtr(buffer, bufSize);
346return StringUtil.StringFromWCharPtr(buffer, len);
689string correlationIdString = StringUtil.StringFromCharPtr(correlationIdStringPtr, correlationIdStringLength);
752if (StringUtil.EqualsIgnoreCase(name, _unknownRequestHeaders[i][0]))
769if (StringUtil.StringStartsWith(name, "HTTP_")) {
1162return StringUtil.StringFromCharPtr(buffer, bufLen);
1180return StringUtil.StringFromWCharPtr(buffer, bufLen);
1198moduleName = StringUtil.StringFromWCharPtr(buffer, bufferSize);
1216return StringUtil.StringFromCharPtr(buffer, bufLen);
1233return StringUtil.StringFromCharPtr(buffer, bufLen);
1545handlerTypeString = StringUtil.StringFromWCharPtr(buffer, bufferSize);
1587handlerTypeString = StringUtil.StringFromWCharPtr(buffer, bufferSize);
1604handlerTypeString = StringUtil.StringFromWCharPtr(buffer, bufferSize);
1673description = StringUtil.StringFromCharPtr(buffer, bufLen);
2025int valueLength = StringUtil.GetNullTerminatedByteArray(_headerEncoding, value, out valueBytes);
2033int valueLength = StringUtil.GetNullTerminatedByteArray(_headerEncoding, value, out valueBytes);
2035StringUtil.GetNullTerminatedByteArray(_headerEncoding, name, out nameBytes);
2059int valueLength = StringUtil.GetNullTerminatedByteArray(_headerEncoding, value, out valueBytes);
2068if (StringUtil.EqualsIgnoreCase(name, "Set-Cookie")) {
2073int valueLength = StringUtil.GetNullTerminatedByteArray(_headerEncoding, value, out valueBytes);
2075StringUtil.GetNullTerminatedByteArray(_headerEncoding, name, out nameBytes);
2104string name = StringUtil.StringFromCharPtr(pName, UnsafeNativeMethods.lstrlenA(pName));
2107value = StringUtil.StringFromWCharPtr(pValue, UnsafeNativeMethods.lstrlenW(pValue));
2185value = StringUtil.StringFromCharPtr(pValue, UnsafeNativeMethods.lstrlenA(pValue));
2208string name = StringUtil.StringFromCharPtr(pName, UnsafeNativeMethods.lstrlenA(pName));
2211value = StringUtil.StringFromCharPtr(pValue, UnsafeNativeMethods.lstrlenA(pValue));
2221if (StringUtil.EqualsIgnoreCase(name, "Set-Cookie")) {
2272userName = StringUtil.StringFromWCharPtr(pUserName, cchUserName);
2277authType = StringUtil.StringFromWCharPtr(pAuthType, cchAuthType);
HttpApplication.cs (10)
1429if (StringUtil.EqualsIgnoreCase(custom, "browser")) {
1885if (StringUtil.EqualsIgnoreCase(targetName, "Application"))
1900&& StringUtil.EqualsIgnoreCase(eventName.Substring(0, 2), "on")) {
1965if (!StringUtil.StringStartsWith(eventName, "Post")) {
2638if (StringUtil.StringStartsWithIgnoreCase(culture, AutoCulture)) {
2651if (StringUtil.StringStartsWithIgnoreCase(uiCulture, AutoCulture))
2796UnsafeNativeMethods.EndPrefetchActivity((uint)StringUtil.GetNonRandomizedHashCode(HttpRuntime.AppDomainAppId));
2879string moduleName = (cBstrModuleName > 0) ? StringUtil.StringFromWCharPtr(pBstrModuleName, cBstrModuleName) : null;
2880string moduleType = (cBstrModuleType > 0) ? StringUtil.StringFromWCharPtr(pBstrModuleType, cBstrModuleType) : null;
2881string modulePrecondition = (cBstrModulePrecondition > 0) ? StringUtil.StringFromWCharPtr(pBstrModulePrecondition, cBstrModulePrecondition) : String.Empty;
HttpServerVarsCollection.cs (12)
112if (StringUtil.EqualsIgnoreCase(name, "AUTH_TYPE"))
114else if (StringUtil.EqualsIgnoreCase(name, "AUTH_USER"))
119if (StringUtil.EqualsIgnoreCase(name, "HTTP_USER_AGENT"))
124if (StringUtil.EqualsIgnoreCase(name, "QUERY_STRING"))
129if (StringUtil.EqualsIgnoreCase(name, "PATH_INFO"))
131else if (StringUtil.EqualsIgnoreCase(name, "PATH_TRANSLATED"))
136if (StringUtil.EqualsIgnoreCase(name, "REQUEST_METHOD"))
138else if (StringUtil.EqualsIgnoreCase(name, "REMOTE_USER"))
140else if (StringUtil.EqualsIgnoreCase(name, "REMOTE_HOST"))
142else if (StringUtil.EqualsIgnoreCase(name, "REMOTE_ADDRESS"))
147if (StringUtil.EqualsIgnoreCase(name, "SCRIPT_NAME"))
240if (StringUtil.StringStartsWith(name, "HTTP_"))
HttpWriter.cs (4)
1674StringUtil.UnsafeStringCopy(s, 0, buffer, _charBufferLength - _charBufferFree, s.Length);
1690StringUtil.UnsafeStringCopy(s, index, buffer, _charBufferLength - _charBufferFree, n);
1735StringUtil.UnsafeStringCopy(s, index, buffer, _charBufferLength - _charBufferFree, count);
1749StringUtil.UnsafeStringCopy(s, index, buffer, _charBufferLength - _charBufferFree, n);
Security\ADMembershipProvider.cs (10)
472if (StringUtil.EqualsIgnoreCase(attributeMapUsername, "sAMAccountName"))
1451if (!StringUtil.EqualsIgnoreCase(passwordAnswer, storedPasswordAnswer))
3170if ((!StringUtil.EqualsIgnoreCase(attributeName, "sAMAccountName"))
3171&& (!StringUtil.EqualsIgnoreCase(attributeName, "userPrincipalName")))
3179if (!StringUtil.EqualsIgnoreCase(attributeName, "userPrincipalName"))
3214if (!StringUtil.EqualsIgnoreCase(syntax, (string) syntaxes[valueName]))
3221if (StringUtil.EqualsIgnoreCase(syntax, "DirectoryString"))
4152if (StringUtil.EqualsIgnoreCase(supportedExtension, LDAP_SERVER_FAST_BIND_OID))
4293if (StringUtil.EqualsIgnoreCase(supportedCapability, LDAP_CAP_ACTIVE_DIRECTORY_ADAM_OID))
4298else if (StringUtil.EqualsIgnoreCase(supportedCapability, LDAP_CAP_ACTIVE_DIRECTORY_OID))
Security\Roles.cs (10)
108if (user != null && user is RolePrincipal && ((RolePrincipal)user).ProviderName == Provider.Name && StringUtil.EqualsIgnoreCase(username, user.Identity.Name))
145if (user != null && user is RolePrincipal && ((RolePrincipal)user).ProviderName == Provider.Name && StringUtil.EqualsIgnoreCase(username, user.Identity.Name)) {
228if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
251if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
276if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
309if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
327if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
350if (user != null && user.ProviderName == Provider.Name && user.IsRoleListCached && StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
375if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
408if (StringUtil.EqualsIgnoreCase(user.Identity.Name, username))
UI\TemplateParser.cs (16)
1184if (StringUtil.EqualsIgnoreCase(attribName, "codefile")) continue;
1185if (StringUtil.EqualsIgnoreCase(attribName, CodeFileBaseClassAttributeName)) continue;
1190if (StringUtil.EqualsIgnoreCase(attribName, "inherits")) {
1469if (StringUtil.EqualsIgnoreCase(tagName, "script") && flags[isServerTag]) {
1513if (StringUtil.EqualsIgnoreCase(tagName, stackEntry._tagName))
1699if (!StringUtil.EqualsIgnoreCase(tagName, "script"))
1773else if (StringUtil.EqualsIgnoreCase(directiveName, "assembly")) {
1801else if (StringUtil.EqualsIgnoreCase(directiveName, "import")) {
1807else if (StringUtil.EqualsIgnoreCase(directiveName, "implements")) {
2423if (StringUtil.EqualsIgnoreCase(pathType, "file")) {
2456else if (StringUtil.EqualsIgnoreCase(pathType, "virtual")) {
2707if (StringUtil.EqualsIgnoreCase(realAttributeName, "id")) {
2710else if (StringUtil.EqualsIgnoreCase(realAttributeName, "runat")) {
2715if (!StringUtil.EqualsIgnoreCase(attribValue, "server")) {
2723else if (FInDesigner && StringUtil.EqualsIgnoreCase(realAttributeName, "ignoreParentFrozen")) {
2791if (stackEntry._tagName == null || !StringUtil.EqualsIgnoreCase(stackEntry._tagName, tagName)) {
UI\WebControls\DetailsView.cs (12)
2167bool isHtml4 = (!StringUtil.EqualsIgnoreCase(browserCaps["tagwriter"], typeof(Html32TextWriter).FullName));
2407if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.PageCommandName)) {
2410if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.NextPageCommandArgument)) {
2412} else if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.PreviousPageCommandArgument)) {
2414} else if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.FirstPageCommandArgument)) {
2416} else if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.LastPageCommandArgument)) {
2423} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.EditCommandName)) {
2425} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.UpdateCommandName)) {
2427} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.CancelCommandName)) {
2429} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.DeleteCommandName)) {
2431} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.InsertCommandName)) {
2434else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.NewCommandName)) {
UI\WebControls\FormView.cs (11)
2037if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.PageCommandName)) {
2040if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.NextPageCommandArgument)) {
2042} else if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.PreviousPageCommandArgument)) {
2044} else if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.FirstPageCommandArgument)) {
2046} else if (StringUtil.EqualsIgnoreCase(itemIndexArg, DataControlCommands.LastPageCommandArgument)) {
2053} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.EditCommandName)) {
2055} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.UpdateCommandName)) {
2057} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.CancelCommandName)) {
2059} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.DeleteCommandName)) {
2061} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.InsertCommandName)) {
2063} else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.NewCommandName)) {
UI\WebControls\GridView.cs (12)
2733bool isHtml4 = !StringUtil.EqualsIgnoreCase(browserCaps["tagwriter"], typeof(Html32TextWriter).FullName);
2989if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.SelectCommandName)) {
2992else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.PageCommandName)) {
2997if (StringUtil.EqualsIgnoreCase(pageNumberArg, DataControlCommands.NextPageCommandArgument)) {
3000else if (StringUtil.EqualsIgnoreCase(pageNumberArg, DataControlCommands.PreviousPageCommandArgument)) {
3003else if (StringUtil.EqualsIgnoreCase(pageNumberArg, DataControlCommands.FirstPageCommandArgument)) {
3006else if (StringUtil.EqualsIgnoreCase(pageNumberArg, DataControlCommands.LastPageCommandArgument)) {
3015else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.SortCommandName)) {
3018else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.EditCommandName)) {
3021else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.UpdateCommandName)) {
3024else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.CancelCommandName)) {
3027else if (StringUtil.EqualsIgnoreCase(command, DataControlCommands.DeleteCommandName)) {
UI\WebParts\PersonalizationAdministration.cs (13)
118path = StringUtil.CheckAndTrimString(path, "path");
134path = StringUtil.CheckAndTrimString(path, "path");
145path = StringUtil.CheckAndTrimString(path, "path");
158path = StringUtil.CheckAndTrimString(path, "path");
178path = StringUtil.CheckAndTrimString(path, "path");
196pathToMatch = StringUtil.CheckAndTrimString(pathToMatch, "pathToMatch", false);
212usernameToMatch = StringUtil.CheckAndTrimString(usernameToMatch, "usernameToMatch", false);
224pathToMatch = StringUtil.CheckAndTrimString(pathToMatch, "pathToMatch", false);
277pathToMatch = StringUtil.CheckAndTrimString(pathToMatch, "pathToMatch", false);
295pathToMatch = StringUtil.CheckAndTrimString(pathToMatch, "pathToMatch", false);
296usernameToMatch = StringUtil.CheckAndTrimString(usernameToMatch, "usernameToMatch", false);
318pathToMatch = StringUtil.CheckAndTrimString(pathToMatch, "pathToMatch", false);
319usernameToMatch = StringUtil.CheckAndTrimString(usernameToMatch, "usernameToMatch", false);
UI\WebParts\SqlPersonalizationProvider.cs (7)
169pathToMatch = StringUtil.CheckAndTrimString(query.PathToMatch, "query.PathToMatch", false, maxStringLength);
178pathToMatch = StringUtil.CheckAndTrimString(query.PathToMatch, "query.PathToMatch", false, maxStringLength);
180usernameToMatch = StringUtil.CheckAndTrimString(query.UsernameToMatch, "query.UsernameToMatch", false, maxStringLength);
359pathToMatch = StringUtil.CheckAndTrimString(query.PathToMatch, "query.PathToMatch", false, maxStringLength);
368pathToMatch = StringUtil.CheckAndTrimString(query.PathToMatch, "query.PathToMatch", false, maxStringLength);
370usernameToMatch = StringUtil.CheckAndTrimString(query.UsernameToMatch, "query.UsernameToMatch", false, maxStringLength);
748path = StringUtil.CheckAndTrimString(path, "path", false, maxStringLength);