Questions tagged as 'string'

1
answer

Save string in a txt file

This is the code that I am implementing, I have also tried it in other ways, however in all the occasions that I execute it the application closes immediately fun writeToFile() { val text = "Prueba texto" File("output.t...
asked by 08.03.2018 / 15:31
3
answers

Convert positions of a string to date in java

I am working on a project that involves the manipulation of a string with a CURP format. Although the whole program is already working, I can not validate the dates since I do the following: inicialAPaterno=curp.charAt(0); inicialApa...
asked by 07.03.2017 / 23:28
5
answers

Reverse a string without .reverse (); in JS

Well it turns out that I have to reverse a String in JS but the method .reverse (); It does not work in my case. function invertir_nums(numeros, numeros_i){ numeros_i = numeros.reverse(); } The problem is that it does not inv...
asked by 02.01.2019 / 16:42
2
answers

Get big-endian from a string?

I have a string "730C" and I need to get a INT big-endian string packetString = "1F:73:0C:01:00:0E:01:01:29:35:1D:00:02:00:01:00:00:00:E7:03:0B:00:65:73:74:65:73:69:74:72:61:62:61:02:01:00:00:00:00"; string ChrIndx = pac...
asked by 13.03.2016 / 19:17
2
answers

Extract a fragment of a variant string in Javascript

I have a date string such as: 1-Ene-2017 , the case is also presented that is as follows: 28-Ene-2017 , what I try to do is get the part of the month's chain that is: Ene . So far I have not been able to get the chain I want...
asked by 29.11.2017 / 20:30
1
answer

First character of string c ++ [closed]

Good, I would like to know when the first character of a string is "#" and I do not know what function to use. Can somebody help me?     
asked by 18.12.2017 / 23:29
1
answer

How to replace spaces in String with underscores?

$cadena = "Esta es la cadena que quiero cambiar"; /* . . .El código que lo convierte . . */ echo $cadenaconvertida;    Result: "Esta_la_cadena_ que_quiero_cambiar"     
asked by 13.06.2018 / 14:53
1
answer

Capitalize first letter a word [duplicated]

I want to capitalize the first letter of all the words in a phrase  EJ:    hello world And the expected response is:    Hello World I'm using java and I have not managed to generate a method that can do it.     
asked by 19.11.2017 / 19:25
2
answers

Format a string or number using Javascript

I have an application that consumes API . I have no control over that API , I can only consume it. The API returns in JSON format a name, latitude and longitude. The problem is that due to a problem, the latitude and...
asked by 13.02.2017 / 12:24
2
answers

Remove text strings that start and end in "" and "" [closed]

I was looking for how to make a string remove all substring that starts and ends with "<" and ">" . Can someone guide me? Edit: Yes, I was referring to labels with all their content.     
asked by 21.11.2016 / 15:26