Porting arduino library to atmel studio project

Hi there, i'm new to atmel programming, and i need to modify arduino library LiquidCrystal_1602_RUS to insert it to existing project cheali-charger.

So i'm a bit confused...

I have a function:
void LiquidCrystal_1602_RUS::print(const wchar_t *_str){
in cheali-charger:
uint8_t LiquidCrystal::print(const char str[])
looks like missmatch of string types

So i'm stuck with this:
D:/Cheali/cheali-charger-master/src/core/drivers/LiquidCrystal.cpp: In member function 'uint8_t LiquidCrystal::print(const char*)':
D:/Cheali/cheali-charger-master/src/core/drivers/LiquidCrystal.cpp:359:12: warning: case label value exceeds maximum value for type
case 1041: //╨С

uint8_t LiquidCrystal::print(const char str[])
{
  uint8_t rus_[8];
  int current_char  = 0;
  int size = 0;
 
  /*while(str[size] != NULL)
  {
    size++;
  }*/
  size = strlen(str);
  
  while(current_char < size)
  {
    switch(str[current_char])
    {
      case 1041: //Б
        memcpy_PF(rus_, (uint32_t)rus_B, 8);
        CharSetToLCD((uint8_t *)rus_, &index_rus_B);
      break;

So error on this line: case 1041
How to convert char to to numeric code (1041) ?

If you want to store unicode characters in str[], you need to use a datatype that can hold 16 bits.

aarg:
If you want to store unicode characters in str[], you need to use a datatype that can hold 16 bits.

It allready stores as it old workingg code and now i need to convert symbols to 4 digits code, how can i do this?

how can i do this?

Look at the two different declarations you posted:

void LiquidCrystal_1602_RUS::print(const wchar_t *_str)

and

uint8_t LiquidCrystal::print(const char str[])

A wchar_t is 16 bits. A char is 8 bits. An 8 bit value (str[current_char]) can NOT hold a value of 1041 when str is a char array. It CAN when str is a wchar_t array.