{"id":2711,"date":"2021-06-21T14:00:31","date_gmt":"2021-06-21T17:00:31","guid":{"rendered":"http:\/\/outsmart.com.br?p=2711"},"modified":"2023-02-02T21:04:36","modified_gmt":"2023-02-03T00:04:36","slug":"manipulando-string","status":"publish","type":"post","link":"https:\/\/outsmart.com.br\/manipulando-string\/","title":{"rendered":"Manipulando String"},"content":{"rendered":"\t\t
Concat<\/strong> Contains<\/strong> Find<\/strong> Length<\/strong> Matches<\/strong> subString<\/strong> toLowerCase<\/strong> toUpperCase<\/strong> Proper<\/strong> trim<\/strong> ConcatA fun\u00e7\u00e3o concat \u00e9 designada para unir o conte\u00fado de duas strings. texto1 = “Ol\u00e1”; texto2 = “Mundo”; valorFinal = texto1.concat(texto2); \/*Fun\u00e7\u00e3o concat combina texto de varias cadeias de caracteres *\/ info valorFinal ; \/\/ Ol\u00e1Mundo ContainsA fun\u00e7\u00e3o contains verifica (booleano) se a string possu\u00ed dentro dela o valor da string passada. Se tiver retornar\u00e1 […]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2711","post","type-post","status-publish","format-standard","hentry","category-zoho-deluge","entry"],"_links":{"self":[{"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/posts\/2711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/comments?post=2711"}],"version-history":[{"count":11,"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/posts\/2711\/revisions"}],"predecessor-version":[{"id":6027,"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/posts\/2711\/revisions\/6027"}],"wp:attachment":[{"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/media?parent=2711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/categories?post=2711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/outsmart.com.br\/wp-json\/wp\/v2\/tags?post=2711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
A fun\u00e7\u00e3o concat \u00e9 designada para unir o conte\u00fado de duas strings.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
A fun\u00e7\u00e3o contains verifica (booleano) se a string possu\u00ed dentro dela o valor da string passada. Se tiver retornar\u00e1 true se n\u00e3o false.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
A fun\u00e7\u00e3o find procura procura a posi\u00e7\u00e3o de um elemento come\u00e7ando do 0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o length tem como objetivo contar o numero de caracteres em uma string.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o matches \u00e9 usada para verificar se tem um padr\u00e3o a ser seguido ou tamb\u00e9m comparar duas strings.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o subString retorna um peda\u00e7o de texto contendo os caracteres do \u00edndice especificado. Voc\u00ea especifica o come\u00e7o do \u00edndice, e o final se quiser.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o toLowerCase retorna a string com todas as letras min\u00fasculas.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o toUpperCase retorna a string com todas a letras min\u00fasculas.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o proper retorna a primeira letra de cada palavra em mai\u00fascula<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t
Fun\u00e7\u00e3o trim remove todos os espa\u00e7os iniciais e finais da string<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t