The invention discloses a character
string processing method and
system applied to a freight rate search
system, and the method comprises the steps: obtaining character strings from freight rate data and freight rate related data of a plurality of data sources, constructing a character array template class based on the character strings, and generating a plurality of template objects, and performing structured
processing on the character strings of the plurality of template objects based on the character array template class to obtain a plurality of structured character strings, performing template operation on the character strings of the plurality of template objects based on the character array template class, and returning an operation result. According to the method, the character array template class is used for
processing the freight rate data character strings, the fixed-length characters are used for storing each kind of freight rate data, the template parameters are used for specifying the length of each kind of freight rate data, and under character string operation based on the character array template class, the freight rate data are stored. According to the method, the data character string difference among the atpco
data source, the third-party
data source and the
user input request is eliminated, the character
string processing speed is increased, the memory overhead is reduced, and the character
string data processing performance is remarkably improved.