mstagjavalib /net/suddenelfilio/ws/tag /VCardTag.java
42.
43. if (IsNullOrEmpty(CategoryName))
44. throw new Exception("The CategoryName cannot be null or empty when creating a Tag.");
45. else
46. mp.put("cn", CategoryName);
47.
48. if (IsNullOrEmpty(InteractionNote))
49. mp.put("in", "");
50. else
51. mp.put("in", InteractionNote);
52.
53. if (IsNullOrEmpty(City))
54. mp.put("c", "");
55. else
38 matches | 257 lines | Java | Bitbucket
isr.core.vb.1.x /Library/EXTENSIONS /StringExtensions.vb
34. Public Function Right(ByVal value As String, ByVal count As Integer) As String
35. If String.IsNullOrEmpty(value) OrElse value.Length <= count Then Return value
36. Return value.Substring(value.Length - count)
37. End Function
49. <Extension()> _
50. Public Function Left(ByVal value As String, ByVal count As Integer) As String
51. If String.IsNullOrEmpty(value) OrElse value.Length <= count Then Return value
52. Return value.Substring(0, count)
53. End Function
62. <Extension()> _
63. Public Function RemoveLeft(ByVal value As String, ByVal count As Integer) As String
64. If String.IsNullOrEmpty(value) OrElse value.Length <= count Then Return ""
65. Return value.Substring(count)
66. End Function
42 matches | 1447 lines | Visual Basic | Bitbucket
mstagjavalib /net/suddenelfilio/ws/tag /FreeTextTag.java
30.
31. if (IsNullOrEmpty(CategoryName))
32. throw new Exception("The CategoryName cannot be null or empty when creating a Tag.");
33. else
34. mp.put("cn", CategoryName);
35.
36. if (IsNullOrEmpty(InteractionNote))
37. mp.put("in", "");
38. else
39. mp.put("in", InteractionNote);
40.
41. if (IsNullOrEmpty(FreeText))
42. throw new Exception("The FreeText cannot be null or empty when creating a FreeText Tag.");
43. else
15 matches | 130 lines | Java | Bitbucket
mstagjavalib /net/suddenelfilio/ws/tag /DialerTag.java
30.
31. if (IsNullOrEmpty(CategoryName))
32. throw new Exception("The CategoryName cannot be null or empty when creating a Tag.");
33. else
34. mp.put("cn", CategoryName);
35.
36. if (IsNullOrEmpty(InteractionNote))
37. mp.put("in", "");
38. else
39. mp.put("in", InteractionNote);
40.
41. if (IsNullOrEmpty(PhoneNumber))
42. throw new Exception("The PhoneNumber cannot be null or empty when creating a Tag.");
43. else
15 matches | 130 lines | Java | Bitbucket
mstagjavalib /net/suddenelfilio/ws/tag /URITag.java
29.
30. if (IsNullOrEmpty(CategoryName))
31. throw new Exception("The CategoryName cannot be null or empty when creating a Tag.");
32. else
33. mp.put("cn", CategoryName);
34.
35. if (IsNullOrEmpty(InteractionNote))
36. mp.put("in", "");
37. else
38. mp.put("in", InteractionNote);
39.
40. if (IsNullOrEmpty(MedFiUrl))
41. throw new Exception("The MedFiUrl cannot be null or empty when creating a Tag.");
42. else
13 matches | 119 lines | Java | Bitbucket
isr.scpi.vb.6.x /Library/PRIMITIVES /Controller.vb
237. ByVal access As ResourceAccessLevels) As String Implements IController.Getter
238. If access.IsDeviceAccess OrElse String.IsNullOrEmpty(existingValue) Then
239. existingValue = Me.QueryTrimEnd(subHeader)
240. End If
257. ByVal existingValue As String,
258. ByVal access As ResourceAccessLevels) As String Implements IController.Getter
259. If access.IsDeviceAccess OrElse String.IsNullOrEmpty(existingValue) Then
260. existingValue = Me.QueryTrimEnd(modalityName, subHeader)
261. End If
284. ByVal existingValue As String,
285. ByVal access As ResourceAccessLevels) As String Implements IController.GetterString
286. If access.IsDeviceAccess OrElse String.IsNullOrEmpty(existingValue) Then
287. If String.IsNullOrEmpty(element.GetterCommand) Then
288. element.GetterCommand = Syntax.BuildQuery(Me.SyntaxHeader, subHeader)
40 matches | 2879 lines | Visual Basic | Bitbucket
contpaq-sdk-for-.net /ContpaqWL /Managed.cpp
49.
50. strncpy_s(cp->cCodigoCliente, String::IsNullOrEmpty( this->CodigoCliente)?"":ToAnsiString(this->CodigoCliente), kLongCodigo);
51. strncpy_s(cp->cRazonSocial, String::IsNullOrEmpty(this->RazonSocial)?"":ToAnsiString(this->RazonSocial), kLongNombre);
52. strncpy_s(cp->cFechaAlta, (this->FechaAlta == nullptr)?"":ToAnsiString(this->FechaAlta->ToString("MM/dd/yyyy")), kLongFecha);
53. strncpy_s(cp->cRFC, String::IsNullOrEmpty(this->RFC)?"":ToAnsiString(this->RFC), kLongRFC);
54. strncpy_s(cp->cCURP, String::IsNullOrEmpty(this->CURP)?"":ToAnsiString(this->CURP), kLongCURP);
55. strncpy_s(cp->cDenComercial, String::IsNullOrEmpty(this->DenComercial)?"":ToAnsiString(this->DenComercial), kLongDenComercial);
56. strncpy_s(cp->cRepLegal, String::IsNullOrEmpty(this->RepLegal)?"":ToAnsiString(this->RepLegal), kLongRepLegal);
57. strncpy_s(cp->cNombreMoneda, String::IsNullOrEmpty(this->NombreMoneda)?"":ToAnsiString(this->NombreMoneda), kLongNombre);
58. cp->cListaPreciosCliente = this->ListaPreciosCliente;
59. cp->cDescuentoMovto = this->DescuentoMovto;
60. cp->cBanVentaCredito = this->BanVentaCredito;
61. strncpy_s(cp->cCodigoValorClasificacionCliente1, String::IsNullOrEmpty(this->CodigoValorClasificacionCliente1)?"":ToAnsiString(this->CodigoValorClasificacionCliente1), kLongCodValorClasif);
62. strncpy_s(cp->cCodigoValorClasificacionCliente2, String::IsNullOrEmpty(this->CodigoValorClasificacionCliente2)?"":ToAnsiString(this->CodigoValorClasificacionCliente2), kLongCodValorClasif);
27 matches | 125 lines | C++ | Bitbucket
opentween /OpenTween /Twitter.cs
198. var errMsg = GetErrorMessageJson(content);
199. if (string.IsNullOrEmpty(errMsg))
200. {
201. return Properties.Resources.Unauthorized + Environment.NewLine + content;
209. {
210. var errMsg = GetErrorMessageJson(content);
211. if (string.IsNullOrEmpty(errMsg))
212. {
213. return "Err:Forbidden";
267. Twitter.AccountState = MyCommon.ACCOUNT_STATE.Invalid;
268. var errMsg = GetErrorMessageJson(content);
269. if (string.IsNullOrEmpty(errMsg))
270. {
271. return "Check the PIN or retry." + Environment.NewLine + content;
42 matches | 4856 lines | C# | Bitbucket
eko /WEB/App_Code/Adapters /WebControlAdapterExtender.cs
40. if ((AdaptedControl != null) &&
41. (!String.IsNullOrEmpty(AdaptedControl.Attributes["AdapterEnabled"])) &&
42. (AdaptedControl.Attributes["AdapterEnabled"].IndexOf("false", StringComparison.OrdinalIgnoreCase) == 0))
43. {
63. if (_disableAutoAccessKey ||
64. ((AdaptedControl != null) &&
65. (!String.IsNullOrEmpty(AdaptedControl.Attributes["AutoAccessKey"])) &&
66. (AdaptedControl.Attributes["AutoAccessKey"].IndexOf("false", StringComparison.OrdinalIgnoreCase) == 0)))
67. {
136. {
137. string attr = "OnAdapted" + eventName;
138. if ((AdaptedControl != null) && (!String.IsNullOrEmpty(AdaptedControl.Attributes[attr])))
139. {
140. string delegateName = AdaptedControl.Attributes[attr];
23 matches | 608 lines | C# | Bitbucket
mono-dependency-analysis mcs/class/System.Web.DynamicData/Test/System.Web.DynamicData /DynamicControlTest.cs
139. Assert.AreNotEqual (HttpStatusCode.InternalServerError, test.Response.StatusCode, "#X1-2{0}Returned HTML:{0}{1}", Environment.NewLine, p);
140. Assert.IsFalse (String.IsNullOrEmpty (p), "#X1-3");
141. }
142.
172. Assert.AreNotEqual (HttpStatusCode.NotFound, test.Response.StatusCode, "#X1-1{0}Returned HTML:{0}{1}", Environment.NewLine, p);
173. Assert.AreNotEqual (HttpStatusCode.InternalServerError, test.Response.StatusCode, "#X1-2{0}Returned HTML:{0}{1}", Environment.NewLine, p);
174. Assert.IsFalse (String.IsNullOrEmpty (p), "#X1-3");
175. }
176.
215. Assert.AreNotEqual (HttpStatusCode.NotFound, test.Response.StatusCode, "#X1-1{0}Returned HTML:{0}{1}", Environment.NewLine, p);
216. Assert.AreNotEqual (HttpStatusCode.InternalServerError, test.Response.StatusCode, "#X1-2{0}Returned HTML:{0}{1}", Environment.NewLine, p);
217. Assert.IsFalse (String.IsNullOrEmpty (p), "#X1-3");
218. }
219.
22 matches | 942 lines | C# | Bitbucket
opentween /OpenTween /FilterDialog.cs
605. {
606. if (!string.IsNullOrEmpty(bfs)) ft.BodyFilter.Add(bfs.Trim());
607. }
608. }
638. foreach (string bfs in bf)
639. {
640. if (!string.IsNullOrEmpty(bfs)) ft.ExBodyFilter.Add(bfs.Trim());
641. }
642. }
706. if (!CheckRegex.Checked && !CheckLambda.Checked) MSG1.Text = MSG1.Text.Replace("?", " ");
707.
708. if (string.IsNullOrEmpty(UID.Text) && string.IsNullOrEmpty(MSG1.Text) && string.IsNullOrEmpty(TextSource.Text) && CheckRetweet.Checked == false)
709. {
710. isBlank = true;
16 matches | 1254 lines | C# | Bitbucket
wojilu /wojilu/_wojilu /strUtil.cs
35. /// <summary>
36. /// ???????? null ??????????.net???string.IsNullOrEmpty???????????true?
37. /// </summary>
38. /// <param name="target"></param>
39. /// <returns></returns>
40. public static Boolean IsNullOrEmpty( String target ) {
41. if (target != null) {
42. return target.Trim().Length == 0;
51. /// <returns></returns>
52. public static Boolean HasText( String target ) {
53. return !IsNullOrEmpty( target );
54. }
55.
90. /// <returns></returns>
16 matches | 655 lines | C# | Bitbucket
api-java-com-maven-antiga /src/main/com/lbslocal/cc/core /CommonRoute.java
183.
184. if (!Functions.IsNullOrEmpty(ro.getDataSource())) {
185. if (ro.getDataSource().toUpperCase().equals("BR"))
186. dataSourcePOI = "lbslocal_postos_rod_pedagio";
254.
255. for (int x = 0; x < poiRoutes.length; x++) {
256. if (!Functions.IsNullOrEmpty(poiRoutes[x])) {
257. String response = tcpDecarta.Send("PNB0|%" + vr + "%RAD=m7|%M=500%PLL%S2%DS=" + poiRoutes[x] + "||");
258. String[] partMasterPOI = response.split(Pattern.quote("|"));
290. String dataSourcePOI = "lbslocal_postos";
291.
292. if (!Functions.IsNullOrEmpty(ro.getDataSource())) {
293. if (ro.getDataSource().toUpperCase().equals("BR"))
294. dataSourcePOI = "lbslocal_postos_rod";
29 matches | 3934 lines | Java | Bitbucket
plex-projects /Yaulw/WinForms /MsgBox.cs
478. {
479. if (icon == MessageBoxIcon.Error && !String.IsNullOrEmpty(MsgBox_FatalErrorHeader) && _ShowFatal)
480. msg = MsgBox_FatalErrorHeader + "\n\n" + msg;
481. else if (icon == MessageBoxIcon.Error && !String.IsNullOrEmpty(MsgBox_ErrorHeader) && !_ShowFatal)
482. msg = MsgBox_ErrorHeader + "\n\n" + msg;
483. else if (icon == MessageBoxIcon.Exclamation && !String.IsNullOrEmpty(MsgBox_WarningHeader))
484. msg = MsgBox_WarningHeader + "\n\n" + msg;
485. else if (icon == MessageBoxIcon.Information && !String.IsNullOrEmpty(MsgBox_InfoHeader))
486. msg = MsgBox_InfoHeader + "\n\n" + msg;
487. }
491. if (ShowFooter)
492. {
493. if (icon == MessageBoxIcon.Error && !String.IsNullOrEmpty(MsgBox_FatalErrorFooter) && _ShowFatal)
494. msg = msg + "\n\n" + MsgBox_FatalErrorFooter;
22 matches | 732 lines | C# | Bitbucket
plex-projects /Yaulw/@integrate /Settings.cs
487. // Check reg
488. bool NotValid = String.IsNullOrEmpty(EmailStmpServer) || String.IsNullOrEmpty(EmailSenderEmail) ||
489. String.IsNullOrEmpty(EmailReceiverEmail);
490. if (NotValid)
491. return false;
493. // Check auth
494. if (EmailStmpServerRequiresAuth)
495. NotValid = String.IsNullOrEmpty(EmailSmtpUsername) || String.IsNullOrEmpty(EmailSmtpPassword);
496. return !NotValid;
497. }
536. {
537. string strFound = App.inifile.GetKeyValue(App.Ini_Setting.EmailSettings__SmtpServer, "");
538. if (!String.IsNullOrEmpty(strFound) && strFound.Contains('.'))
539. return strFound;
21 matches | 1058 lines | C# | Bitbucket
isr.scpi.vb.5.1 /Library/PRIMITIVES /Syntax.vb
667. Public Shared Function ParseBoolean(ByVal value As String, ByVal trueValue As String) As Nullable(Of Boolean)
668. Return Not String.IsNullOrEmpty(value) AndAlso value.StartsWith(trueValue, StringComparison.Ordinal)
669. End Function
670.
676. ''' <remarks></remarks>
677. Public Shared Function ParseBoolean(ByVal value As String) As Nullable(Of Boolean)
678. If String.IsNullOrEmpty(value) Then
679. Return New Nullable(Of Boolean)
680. ElseIf value.StartsWith("0", StringComparison.Ordinal) Then
1246. Public Shared Function SubstringBetween(ByVal source As String, ByVal startDelimiter As String, ByVal endDelimiter As String) As String
1247.
1248. If String.IsNullOrEmpty(source) Then
1249. Return String.Empty
1250. End If
24 matches | 1701 lines | Visual Basic | Bitbucket
isr.tsp.vb.3.x /Library/PRIMITIVES /TspUserScript.vb
145. Public Overrides Function ToString() As String
146. If String.IsNullOrEmpty(Me._instanceName) Then
147. Return MyBase.ToString
148. Else
156. Public Property InstanceName() As String
157. Get
158. If String.IsNullOrEmpty(Me._instanceName) Then
159. Return MyBase.ToString
160. Else
222. ''' <remarks></remarks>
223. Public Function ClearScriptSource(ByVal value As String) As Boolean
224. If String.IsNullOrEmpty(value) Then
225. Return False
226. End If
20 matches | 1081 lines | Visual Basic | Bitbucket
mono-dependency-analysis /mcs/class/System.Web/System.Web.UI.WebControls /TreeView.cs
1028. foreach (string id in states.Split ('|')) {
1029. if (String.IsNullOrEmpty(id))
1030. continue;
1031. TreeNode node = FindNodeByPos (id);
1328. string skipLinkText = SkipLinkText;
1329.
1330. if (!String.IsNullOrEmpty (skipLinkText)) {
1331. writer.AddAttribute (HtmlTextWriterAttribute.Href, "#" + ClientID + "_SkipLink");
1332. writer.RenderBeginTag (HtmlTextWriterTag.A);
1351. base.RenderEndTag (writer);
1352.
1353. if (!String.IsNullOrEmpty (SkipLinkText)) {
1354. writer.AddAttribute (HtmlTextWriterAttribute.Id, ClientID + "_SkipLink");
1355. writer.RenderBeginTag (HtmlTextWriterTag.A);
20 matches | 2041 lines | C# | Bitbucket
commandline /src/libcmdline /CommandLineText.cs
338. {
339. bool isVersionNull = string.IsNullOrEmpty (_version);
340. var builder = new StringBuilder (_programName.Length +
341. (!isVersionNull ? _version.Length + 1 : 0)
423. public static void AppendLineIfNotNullOrEmpty(this StringBuilder bldr, string value)
424. {
425. if (!string.IsNullOrEmpty(value))
426. {
427. bldr.AppendLine(value);
483. get
484. {
485. if (string.IsNullOrEmpty(_fullText))
486. {
487. if (!string.IsNullOrEmpty(_line1))
20 matches | 1276 lines | C# | Bitbucket
plex-projects /Yaulw/Monitor /MonitorDataStore.cs
177. bool bAddSuccess = false;
178. if (processExe != null && !String.IsNullOrEmpty(processExe.ProcessExeFileNameNPath))
179. {
180. if (processExe.CommandLinePrms == null)
210. {
211. bool bAddSuccess = false;
212. if (!String.IsNullOrEmpty(ProcessExeFileNameNPath))
213. {
214. if (CommandLinePrms == null)
245. {
246. bool bCanAddSuccess = false;
247. if (!String.IsNullOrEmpty(ProcessExeFileNameNPath))
248. {
249. if (CommandLinePrms == null)
19 matches | 1699 lines | C# | Bitbucket

