23-24C++ (47)–String application + uppercase isupper(a[i])+lowercase islower(a[i])+large to small tolower(a[i])+small to large toupper(a[i]) )+digit isdigit function

[Example 1] A positive integer n, indicating that there are n groups of cases. Each set of cases inputs a string a, and outputs string a whose subscript is an odd number of characters. Each set of cases must be line-wrapped after output. #include<iostream> #include<string> using namespace std; int main() { int n; cin >> […]

js implements md5 encryption 32-bit uppercase

Javascript implements md5 algorithm 32-bit Case code slices. function MD5(instring) {<!– –> var hexcase = 0; /* hex output format. 0 – lowercase; 1 – uppercase */ var b64pad = “”; /* base-64 pad character. “=” for strict RFC compliance */ /* * These are the functions you’ll usually want to call * They take […]

Lombok + Swagger2 +Jackson The second letter of the attribute is uppercase, and the second letter of the field after serialization is lowercase

Article directory 1. Problem Overview 2. Cause analysis: 1. Overview of the problem The original FastJson converter used in the SpringBoot project, with Swagger2 + lombok serialization, the field case is normal, but when it is replaced with fastJson, if the second letter in the original entity is capitalized, the fields returned in the swagger […]

Validates the palindrome if the phrase reads the same forwards and backwards after converting all uppercase characters to lowercase and removing all non-alphanumeric characters. Then the phrase can be considered as a palindrome.

Title: If after converting all uppercase characters to lowercase and removing all non-alphanumeric characters, the phrase reads the same forwards and backwards. Then the phrase can be considered as a palindrome. Both letters and numbers are alphanumeric characters. Given a string s, return true if it is a palindrome; otherwise, return false. Example 1: Input: […]

Qt’s keyboard event monitoring – real-time response to uppercase and lowercase Capslock buttons

1. Opening This article mainly explains how to realize the process of real-time monitoring of capitalization, other content will not be described in detail. The main line of article analysis is based on the blogger’s idea of completing this function at that time. Although the final solution is correct, the blogger has written down some […]

I clearly passed this field, why can’t I receive it? – In Spring, the first letter is lowercase and the second letter is uppercase, which is a parameter problem?

Problem phenomenon vSwitchId, uShape, iPhone… What are the characteristics of such field names? It’s easy to see, the first letter is lowercase and the second letter is uppercase. They do appear to follow Java’s “little camel case” for fields, where the first word is lowercased and subsequent words are capitalized. However, if you name the […]

I clearly passed this field, why can’t I receive it? – In Spring, the first letter is lowercase and the second letter is uppercase, which is a parameter problem

Problem phenomenon vSwitchId, uShape, iPhone… What are the characteristics of such field names? It’s easy to see, the first letter is lowercase and the second letter is uppercase. They do appear to follow Java’s “little camel case” for fields, where the first word is lowercased and subsequent words are capitalized. However, if you name the […]

Assembly language realizes the conversion of lowercase letters entered by the keyboard into uppercase letters and finds and outputs the largest character entered by the keyboard

One code implementation assume cs:code,ds:data,ss:stack data segment ; data segment W0 db ‘Program by HOU SH 2017w’,0dh,0ah,’$’ ; Prompt W1 db ‘Please input number 1~3.’,0dh,0ah,’$’ W2 db ‘1.Input a string. Then concert the small letters to big letter.’,0dh,0ah,’$’ W3 db ‘2.Find the character whose ASCII code is biggest.’,0dh,0ah,’$’ W6 db ‘3.End the program.’,0dh,0ah,’$’ W7 db […]

0~9, a~z and A~Z uniCode comparison table, character code and character comparison table, for, fromCharCode, toString, toUpperCase, eval

Article directory 1, 0~9 2. a~z 3. A~Z 4. Blog Content Sources 5. Function (requirement) description 6. Implementation ideas 1, 0~9 serial number character uniCode decimal hexadecimal 1 0 48 30 2 1 49 31 3 2 50 32 4 3 51 33 5 4 52 34 6 5 53 35 7 6 54 36 […]

[Solved] axios reported an error: TypeError: r.toUpperCase is not a function

Error TypeError: r.toUpperCase is not a function when using axios.create method I checked, and this kind of error is usually an error in setting headers when requesting axios. I checked my request header and the modification was successful. const axios2 = axios.create({<!– –> headers:’tom’, }) should be changed to const axios2 = axios.create({<!– –> headers:{<!– […]