Category "char"

Printing strings and characters as hexadecimal in Go

Why cyrillic strings in hexadecimal format differ from cyrillic chars in hexadecimal format? str := "Э" fmt.Printf("%x\n", str) //result d0ad str :

Invalid conversion from char * to int fpermissive

#include<iostream> #include<vector> using namespace std; int main(int argc,char** argv){ int n; if(argc>1) n=argv[0]; int* stuff=new int[n];

Golang: Unzip files in Go gets char encoding problems in the files names when file has been zipped in windows

I´m trying to unzip files in Go (Golang) using the zip lib. The problem is that when the zip file has been zipped in windows all special characters get me

Copying a certain number of characters from one pointer to another

I have a source pointer (pSource) and a goal pointer (pGoal). I also have a number of characters (n) that need to be copied to the pGoal from pSource. I thought

How to make palindrome program using recursion ignore special characters in all places of the string in java?

I am having a slight logic error with my palindrome program in that when I insert special characters in the front or end of the string I get an indication that

Printing Unicode Characters in Java - PrintWriter

I am developing a card game in Java and I am currently using a command line to interact and display outputs of the game. I have been representing each card suit

How to split string in chars and get code of each char in freemarker?

I think that I can split using this: <#list str as c> ... </#list> But then I need to convert this char to byte and add it to another number.

React js character limitation

Im trying to implement a chartercter limit for a textArea in react js here is my code. state = { chars_left: 140; } handleWordCount = event => { const

Dividing arbitrary large numbers stored in char arrays in C

A part of my home assignment requires dividing large integers that are so long I can only store them in character arrays. Both the divident and the divisor can

Isn't a 2-byte char datatype insufficient to deal with the concept of "characters" in a Unicode string?

Various programming languages use a 2-byte char datatype (not to be confused with C/C++'s char, which is just one byte) out of which strings are constructed. Va

String plus Char - what is happening?

I'm just curious about what is going on when trying to add a char to a string. Initially, I thought it would work like a concatenation but it didn't: cout<&l

C: Custom strlen() library function

I created my version of strlen() function. unsigned int my_strlen(char *p) { unsigned int i = 0; while(*p!='\0') { i++; p++; }